Skip to content

Instantly share code, notes, and snippets.

@maxcampolo
Created August 9, 2016 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxcampolo/25b537caa684d1a63d844162d9891467 to your computer and use it in GitHub Desktop.
Save maxcampolo/25b537caa684d1a63d844162d9891467 to your computer and use it in GitHub Desktop.
Count number of files with a specified extension.
// Recursive
find . -name "*.filetype" | wc -l
// Nonrecursive
ls -l *.filetype | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment