Created
September 6, 2014 05:36
-
-
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.
This file contains 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
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