Recursive linecount

Get the count of all py-files in my development-dir:

find /a/dev/ -type f -name “*.py” -exec sed -n ‘$=’ {} \; | awk ‘{lines=lines+$1}END{print lines}’

 

Advertisements