Wednesday, July 8, 2020

Find Size of all files with certain extensions

You can find the size with this find command:


find . -iregex ".*\.\(jpg\|gif\|png\|jpeg\)"  -exec du -ch {} + | grep total$


iregex means case-insensitive.

No comments: