Skip to content

Instantly share code, notes, and snippets.

@saivenkat
Created February 24, 2010 07:07
Show Gist options
  • Select an option

  • Save saivenkat/313199 to your computer and use it in GitHub Desktop.

Select an option

Save saivenkat/313199 to your computer and use it in GitHub Desktop.
Find line count of all files in a directory
for file in `find . -type f`; do echo $file `cat $file | wc -l`; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment