linux shell wc 命令
生活随笔
收集整理的這篇文章主要介紹了
linux shell wc 命令
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1. 語法與選項
| -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 |
| -L | –max-line-length | print the length of the longest line |
| -w | –words | print the word counts |
2. 實例
? ?打印文件的行數,單詞數,字符串數
$wc file結果:
X Y Z file #X 行數 #Y 單詞數 #Z 字符數?
單獨打印行數
$ wc -l file?
?
?
?
轉載于:https://www.cnblogs.com/davidwang456/p/3784214.html
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的linux shell wc 命令的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux shell pushd po
- 下一篇: Servlet 工作原理解析--转载