Summary: Use Windows PowerShell to count characters, words, and lines in a file. How can I count the number of characters, words, and lines in a text file by using Windows PowerShell? Use the Measure-Object cmdlet; specify the -Line, -Character, and -Word switched parameters; and use the Get-Content cmdlet to read the text file: PS C:\> Get-Content C:\fso\ab.txt | measure -Line -Character -Word Lines Words ... More >
Saturday, Jul 6