Skip to content

Instantly share code, notes, and snippets.

@evitolins evitolins/find_stuff.sh
Last active Apr 10, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.