Created
February 3, 2016 16:39
-
-
Save PaulChana/11ec610a1373f563dd5a to your computer and use it in GitHub Desktop.
Find average file size
This file contains hidden or 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
# Thanks to http://vivekjain10.blogspot.co.uk/2008/02/average-file-size-within-directory.html | |
find . -type f -name *.wav -print0 | xargs -0 ls -l | awk '{sum += $5; n++;} END {print sum/(n-1)/1024/1024;}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment