Skip to content

Instantly share code, notes, and snippets.

@dsueiro
Created October 27, 2011 20:24
Show Gist options
  • Select an option

  • Save dsueiro/1320767 to your computer and use it in GitHub Desktop.

Select an option

Save dsueiro/1320767 to your computer and use it in GitHub Desktop.
Recursive wc -l (excluding .git repo files)
find ./ -not -type d | grep -v ".git/" | xargs wc -l | cut -c 1-8 | awk '{total += $1} END {print total}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment