Linux wc命令詳解

今天的內容是linux的wc命令,這個名字很好記。j_0052.gif你也知道?

這個命令很好記,他的功能有限。

wc -c filename:顯示一個文件的字節數

wc -m filename:顯示一個文件的字符數

wc -l filename:顯示一個文件的行數

wc -L filename:顯示一個文件中的最長行的長度

wc -w filename:顯示一個文件的字數

 -c, --bytes

              print the byte counts


       -m, --chars

              print the character counts


       -l, --lines

              print the newline counts


       --files0-from=F

              read input from the files specified by NUL-terminated names in file F; If F is - then read names from standard input


       -L, --max-line-length

              print the length of the longest line


       -w, --words

              print the word counts


       --help display this help and exit


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章