The Technical Bits

… and pieces

Monday, March 1, 2010

Recursively Count the Number of Lines in a File

find . -type f -name '*.' -exec wc -l {} \; | awk '{sum+=$1} END {print sum}'

posted by gurnaik at 5:39 pm  

Powered by WordPress