shows disk usage summaries if GB or above in size
[feisty_meow.git] / scripts / files / show_just_biggies.sh
1 #!/bin/bash
2
3 # iterates through the directories or files passed on the command line and does a summary disk usage, but only the
4 # things measurable in gigabytes, terabytes, or larger are shown.  the smaller items are just omitted (so anything
5 # measurable within megabytes, kilobytes, and bytes, as decided by the human-readable du command.
6
7 for dir in "${@}"; do
8   du -sh "$dir"  2>/dev/null | grep -v "^[ 0-9.]*K\|^[ 0-9.]*M\|^[ 0-9.]*B" 
9 done