Skip to content

Instantly share code, notes, and snippets.

@danielgindi
Last active April 3, 2016 14:12
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 danielgindi/dc45a44731224803ea662cd39413f4f8 to your computer and use it in GitHub Desktop.
Save danielgindi/dc45a44731224803ea662cd39413f4f8 to your computer and use it in GitHub Desktop.
(Linux) List file counts grouped by file extension
find ./ -maxdepth 1 -type f | grep -E ".*\.[a-zA-Z0-9]*$" | sed -e 's/.*\(\.[a-zA-Z0-9]*\)$/\1/' | sort | uniq -c | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment