Skip to content

Instantly share code, notes, and snippets.

@evitolins
Last active April 10, 2017 18:32
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 evitolins/28bb5ef0bfc8b90457f362e2b30c2a7b to your computer and use it in GitHub Desktop.
Save evitolins/28bb5ef0bfc8b90457f362e2b30c2a7b to your computer and use it in GitHub Desktop.
Helpful Find Commands
# Find all files with uppercase extensions
find . -type f -regex '.*\.[A-Z]\{1,\}'
# Count all files with uppercase extensions
find . -type f -regex '.*\.[A-Z]\{1,\}' | wc -l
# Find all file extensions that exceed 2MB
find . -type f -name "*.*" -size +2M | sed 's|.*\.||' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment