摘要: 001、 [root@PC1 test]# ls a.txt b.txt c.txt [root@PC1 test]# find *.txt a.txt b.txt c.txt [root@PC1 test]# find *.txt | awk '{print "mv", $0, $0".bak"} 阅读全文
posted @ 2023-05-27 23:01 小鲨鱼2018 阅读(287) 评论(0) 推荐(0)
摘要: 001、grep实现 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 234 fw3mh i86st sfg yzv e32kut zd7 utes eywq [root@PC1 test]# grep -o ".$" a.t 阅读全文
posted @ 2023-05-27 22:33 小鲨鱼2018 阅读(1166) 评论(0) 推荐(0)