摘要:
linux系统中如何删除空行。 1、测试数据 a.txt [root@centos79 test]# ls a.txt [root@centos79 test]# cat a.txt a g r e i x k like a f g liker [root@centos79 test]# cat - 阅读全文
posted @ 2021-07-04 20:17
小鲨鱼2018
阅读(339)
评论(0)
推荐(0)
摘要:
1、 [root@centos79 test]# cat a.txt a g r e u c j alike i x k like a f g liker a f h g liker s g e g [root@centos79 test]# grep "^a" a.txt ## 查找以a开头的行 阅读全文
posted @ 2021-07-04 19:37
小鲨鱼2018
阅读(9477)
评论(0)
推荐(0)
摘要:
1、测试数据 [root@centos79 test]# ls a.txt [root@centos79 test]# cat a.txt a g e u c j alike i x k like w f g liker s g e g [root@centos79 test]# echo "b.t 阅读全文
posted @ 2021-07-04 19:18
小鲨鱼2018
阅读(959)
评论(0)
推荐(0)
摘要:
1、测试数据 [root@centos79 test]# cat a.txt a g e u c j alike i x k like w f g liker s g e g [root@centos79 test]# grep like a.txt u c j alike i x k like w 阅读全文
posted @ 2021-07-04 18:57
小鲨鱼2018
阅读(689)
评论(0)
推荐(0)
摘要:
linux系统中如何删除文件的最后几行 1、 [root@centos79 test]# cat a.txt a g e d c j i x a e i r x v b x e w [root@centos79 test]# head -n -2 a.txt a g e d c j i x a e 阅读全文
posted @ 2021-07-04 18:14
小鲨鱼2018
阅读(1013)
评论(0)
推荐(0)
摘要:
1、linux系统中如何统计文件的行数 [root@centos79 test]# cat b.txt a g e d c j i x a [root@centos79 test]# wc -l b.txt 3 b.txt 2、 [root@centos79 test]# cat b.txt a g 阅读全文
posted @ 2021-07-04 17:58
小鲨鱼2018
阅读(1220)
评论(0)
推荐(0)

浙公网安备 33010602011771号