Skip to content

Instantly share code, notes, and snippets.

@zmf
Last active March 9, 2017 22:56
Show Gist options
  • Save zmf/6b0db5a145eee01ee6bff3bc9c837459 to your computer and use it in GitHub Desktop.
Save zmf/6b0db5a145eee01ee6bff3bc9c837459 to your computer and use it in GitHub Desktop.
find top used extension inside a directory (recursively)
find ./ -type f | grep -E ".*\.[a-zA-Z0-9]*$" | sed -e 's/.*\(\.[a-zA-Z0-9]*\)$/\1/' | sort | uniq -c | sort -rn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment