摘要:
1、tr实现 a、 [root@PC1 test1]# ls a.txt [root@PC1 test1]# cat a.txt ## 测试文本 ab cd EF Gh ij KL [root@PC1 test1]# cat a.txt | tr "A-Z" "a-z" ## 全部转换为小写 ab 阅读全文
posted @ 2024-02-06 17:09
小鲨鱼2018
阅读(254)
评论(0)
推荐(0)
摘要:
001、一般去重复 [root@PC1 test01]# ls a.txt [root@PC1 test01]# cat a.txt ## 测试文本 c d c a b b [root@PC1 test01]# cat a.txt | sort | uniq ## 去重复后也排序了 a b c d 阅读全文
posted @ 2024-02-06 10:41
小鲨鱼2018
阅读(44)
评论(0)
推荐(0)

浙公网安备 33010602011771号