Bike Path
Thursday, January 31, 2013
Average File Size in Directory
find print/ -type f -print0 | xargs -0 ls -l | gawk \ '{sum += $5; n++;} END {print "Total Size: " sum/1024/1024 " MB : Avg Size: " sum/n/1024 " KB : Total Files: " n ;}'
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment