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 e d c j i x a [root@centos79 test]# sed -n '$=' b.txt 3
3、
[root@centos79 test]# cat a.txt a g r e i x k like a f g liker [root@centos79 test]# awk 'END{print NR}' a.txt 3