Skip to content

Instantly share code, notes, and snippets.

@mattiarossi
Created December 9, 2013 08:48
Show Gist options
  • Select an option

  • Save mattiarossi/7869264 to your computer and use it in GitHub Desktop.

Select an option

Save mattiarossi/7869264 to your computer and use it in GitHub Desktop.
Shell script to find total file sizes using a certain pattern
ls -l `find . -name \*.mp3` | awk '{ x += $5 } END { print "total MB:" x/(1024*1024) }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment