摘要:
\b表示限位符,\B表示与\b相反的匹配 01、\b [root@PC1 test2]# ls a.txt [root@PC1 test2]# cat a.txt ## 测试数据 ab xyky 3d ma abki ff ec dfab ff fg ab kk ad ff ab ad fabe j 阅读全文
posted @ 2024-02-17 20:24
小鲨鱼2018
阅读(351)
评论(0)
推荐(0)
摘要:
01、先排序,然后取首尾(数据大时不适用) [root@pc1 test1]# ls a.txt [root@pc1 test1]# cat a.txt ## 测试文件 8 3 39 28 2 4 6 [root@pc1 test1]# sort -n a.txt | head -n 1 ## 最小 阅读全文
posted @ 2024-02-17 15:39
小鲨鱼2018
阅读(319)
评论(0)
推荐(0)

浙公网安备 33010602011771号