linux之wc命令

用法:wc [選項]… [文件]…
 或:wc [選項]… –files0-from=F
Print newline, word, and byte counts for each FILE, and a total line if
more than one FILE is specified. With no FILE, or when FILE is -,
read standard input. A word is a non-zero-length sequence of characters
delimited by white space.
The options below may be used to select which counts are printed, always in
the following order: newline, word, character, byte, maximum line length.
-c, –bytes print the byte counts
-m, –chars print the character counts
-l, –lines print the newline counts
–files0-from=文件 從指定文件讀取以NUL 終止的名稱,如果該文件被
指定爲”-“則從標準輸入讀文件名
-L, –max-line-length 顯示最長行的長度
-w, –words 顯示單詞計數
–help 顯示此幫助信息並退出
–version 顯示版本信息並退出

這裏寫圖片描述

這裏寫圖片描述

發佈了41 篇原創文章 · 獲贊 18 · 訪問量 16萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章