統(tǒng)計文件行數(shù),以統(tǒng)計系統(tǒng)install.log文件行數(shù)為例。
統(tǒng)計install.log文件的行數(shù)的命令:
wc -l install.log
或者
cat install.log | wc -l
相關(guān)學(xué)習(xí)視頻教程分享:linux視頻教程
統(tǒng)計單詞數(shù),還是以install.log文件為例。
統(tǒng)計install.log文件的單詞數(shù)的命令:
wc -w install.log
或者
cat install.log | wc -w
統(tǒng)計字符數(shù)。依然以install.log文件為例。
統(tǒng)計install.log文件的字符數(shù)的命令:
wc -c install.log
或者
cat install.log | wc -c
相關(guān)文章教程推薦:linux教程