On a windows 7 machine, I'd like a quick way to determine the number of lines in all of the files in a directory tree, for files of a given extension. Is there any good out of the box way to do this?
migrated from serverfault.com Oct 12 '11 at 17:53
This question came from our site for professional system and network administrators.
powershell is an option.
PS C:\Users\MW> dir -Recurse *.txt | Get-Content | Measure-Object