Tip - How to print the number of characters in each line of a text file

Published  | Submitted by Dario Seghezzi
How to print the number of characters in each line of a text file

I would like to print the number of characters in each line of a text file using a unix command. I know it is simple with powershell gc abc.txt | % {$_.length} but I need unix command.

About Author

More by Dario Seghezzi

No more topics...

About This Tip

Posted: 9 years, 3 month(s) ago

195 Reads
0 Votes