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?

link|improve this question
1  
[Do you know a similar program for wc (unix word count command) on Windows?][1] [1]: stackoverflow.com/questions/247234/… – sinping Oct 12 '11 at 17:50
I'm familiar with wc, I wish there was a W7 equivellant. – quillbreaker Oct 12 '11 at 18:17
feedback

migrated from serverfault.com Oct 12 '11 at 17:53

This question came from our site for system administrators and desktop support professionals.

3 Answers

up vote 1 down vote accepted

powershell is an option.

PS C:\Users\MW> dir -Recurse *.txt | Get-Content | Measure-Object

Count    : 11
Average  :
Sum      :
Maximum  :
Minimum  :
Property :
link|improve this answer
feedback

Nope. I'm sure you can find some simple tools, like WinGrep that would help; but not "out of the box".

link|improve this answer
feedback

You might try to use the 'wc.exe' program contained in the Cygwin package.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.