Skip to content

Instantly share code, notes, and snippets.

@vjk2005
Created September 6, 2014 05:36
Show Gist options
  • Save vjk2005/7cba1bff8380fb72512c to your computer and use it in GitHub Desktop.
Save vjk2005/7cba1bff8380fb72512c to your computer and use it in GitHub Desktop.
Example shows the use case for listing the total file size of all MP4 files in the current directory without any recursion. Use find command for recursion.
ls *.mp4 -l | awk '{total += $5} END {print total}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment