Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
du | awk '{ if ($1>1000*1024) { print $0 } }'
# prints out a whole bunch of directories bigger than 1000mb
du --max-depth=3 | awk '{ if ($1>1000*1024) { print $0 } }'
# just hangs with no output (i waited 5 mins) whereas ..
du --max-depth=3
# immediately outputs directories which i can see are bigger than 1000mb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment