recursive line count [closed] - by RobKohr One answer I found: find ./ -not -type d -exec wc -l {} + | awk '{t+=$1} END {print t}' Read the article