Created
March 17, 2010 18:36
-
-
Save nevans/335569 to your computer and use it in GitHub Desktop.
count files and disk usage
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
echo -e 'count\t size\t name' | |
for dir in *; do | |
echo -e `find "$dir" -type f | wc -l` '\t' \ | |
`du -sh "$dir" | awk '{ print $1 }'` '\t' \ | |
"$dir" | |
done | sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment