Skip to content

Instantly share code, notes, and snippets.

@Aricg
Created May 9, 2013 21:06
Show Gist options
  • Select an option

  • Save Aricg/5550627 to your computer and use it in GitHub Desktop.

Select an option

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.
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