wc -c filename: 顯示一個文件的字節數
wc -m filename:顯示一個文件的字符數
wc -l filename: 顯示一個文件的行數
wc -L filename: 顯示一個文件中的最長行的長度
wc -w filename:顯示一個文件的字數
實例:
[root@rhel6 script]# netstat -lntup | grep mysql | wc -l 1 [root@rhel6 script]#
wc -c filename: 顯示一個文件的字節數
wc -m filename:顯示一個文件的字符數
wc -l filename: 顯示一個文件的行數
wc -L filename: 顯示一個文件中的最長行的長度
wc -w filename:顯示一個文件的字數
實例:
[root@rhel6 script]# netstat -lntup | grep mysql | wc -l 1 [root@rhel6 script]#
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。