Last active
April 10, 2017 18:32
-
-
Save evitolins/28bb5ef0bfc8b90457f362e2b30c2a7b to your computer and use it in GitHub Desktop.
Helpful Find Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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