linux | find and count files per extension

 # find /data/exchange -type f \( -iname "*.mov" -o -iname "*.mp4" \) -exec du -cm {} + | sort -n
Advertisements