In Linux we have the "wc" command which allows us to count the number of characters, words and lines in a file.
But do we have a similar cmdlet in PowerShell. The Measure-Object cmdlet I tried could only count the number of lines but not the characters and words.
Measure-Object
cmdlet CAN count lines, words, and chars. please add your code to the Question so we can see what needs changing. – GroovyMeasure-Object
seems to be much slower thanwc
. – Nahum