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

Doctor Scripto

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

 

 

0 comments

Discussion is closed.

Feedback usabilla icon