Add to Technorati Favorites
Welcome to ThePowerShellGuy.com Sign in | Join | Help

Hey, PowerShell Guy! How Can I Count the Number of Characters in a Text File?

And another VbScript to PowerShell translation of a scripting Guy Column, and (as expected ) again not to much problems with it this time ;-)

How Can I Count the Number of Characters in a Text File?

gc Text.txt | Measure-Object -Character

to do also line and Word count :

gc Text.txt | Measure-Object -Character -Word -Line

Enjoy,

Greetings /\/\o\/\/

Published Tuesday, March 06, 2007 8:47 AM by MoW
Filed under: ,

Comments

No Comments
Anonymous comments are disabled