Skip to content

Instantly share code, notes, and snippets.

@tobiassjosten
Created October 4, 2009 10:50
Show Gist options
  • Save tobiassjosten/201305 to your computer and use it in GitHub Desktop.
Save tobiassjosten/201305 to your computer and use it in GitHub Desktop.
# Count the number of lines in the files of a directory
find * -type f -print0 | xargs -0 wc -l | grep total | awk '{print $1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment