Created
May 9, 2013 21:06
-
-
Save Aricg/5550627 to your computer and use it in GitHub Desktop.
count how many gigs all of my snapshots are taking. Whoo boy. It's a lot.
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
| for x in $(find . -type f | grep snapshot | grep eu ); do echo $x; foo=$(cat $x | grep SNAPSHOT | awk '{ i=i+$8}; END { print i }'); echo "$foo GIGS"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment