December 9th, 2012

PowerTip: Finding Out the Number of Words in the About_ conceptual Help Files

Doctor Scripto
Scripter

Summary: Learn how to find out the number of words in the Help About_ conceptual files.

Hey, Scripting Guy! Question How can I determine how many words are in the Help About_ conceptual files?

Hey, Scripting Guy! Answer Use the Get-Help cmdlet to find all of the About_ conceptual files. Then, pipe the results to a Foreach-object cmdlet. Inside the process script block, call the Get-Help cmdlet again to retrieve the information. Pipe the results to the Measure-Object cmdlet, as shown here.

Get-Help about*  | % { get-help $_.name } | measure -Word

 

 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.