Created
February 5, 2014 01:24
-
-
Save martinwells/8815829 to your computer and use it in GitHub Desktop.
Bash: find size of all files (recursively) using a given name/extension
This file contains 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 . -name "*.png" -mtime -1 | du | awk '{total+=$1} END{print total}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment