计算文字行数

#计算文字行数

Select-String -Pattern "iis" -Path .\Midversion_serverresult.txt |measure -Line

(Select-String -Pattern "iis" -Path .\Midversion_serverresult.txt).count

 

#计算文字个数、行数、

Get-Content *.txt | Measure-Object –word –line -character

posted on 2014-02-18 16:11  momingliu11  阅读(424)  评论(0编辑  收藏  举报