Created
May 22, 2019 15:04
-
-
Save derms/a38e7b2fcb975a903203ff6e47520394 to your computer and use it in GitHub Desktop.
Find files with certain extension(s) and find the size of those files
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 . -name "*.pdf" -o -name "*.jpg" -o -name "*.png" -o -name "*.tif" -o -name "*.PNG" | sed 's| |\\ |g' | xargs ls -sk | sed 's/ .\/.*\//,/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment