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?
feedback
|
migrated from serverfault.com Oct 12 '11 at 17:53
This question came from our site for system administrators and desktop support professionals.
|
powershell is an option. PS C:\Users\MW> dir -Recurse *.txt | Get-Content | Measure-Object
| |||
|
feedback
|
|
Nope. I'm sure you can find some simple tools, like WinGrep that would help; but not "out of the box". | |||
|
feedback
|
|
You might try to use the 'wc.exe' program contained in the Cygwin package. | |||
|
feedback
|