Skip to content

Instantly share code, notes, and snippets.

@jsteiner
Forked from mislav/fat-logfiles.sh
Created February 8, 2013 01:13
Show Gist options
  • Save jsteiner/4735768 to your computer and use it in GitHub Desktop.
Save jsteiner/4735768 to your computer and use it in GitHub Desktop.
find ~ -name '*.log' -print0 | xargs -0 -L1 stat -f'%z %N' | sort -rn | tee fat-logfiles.txt | head
awk '{ total += $1 } END { printf "total: %5.2f MiB\n", total/1024/1024 }' < fat-logfiles.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment