Skip to content

Instantly share code, notes, and snippets.

@martinwells
Created February 5, 2014 01:24
Show Gist options
  • Save martinwells/8815829 to your computer and use it in GitHub Desktop.
Save martinwells/8815829 to your computer and use it in GitHub Desktop.
Bash: find size of all files (recursively) using a given name/extension
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