To make this even simpler, you can do du -h | awk '$1 ~ /[0-9]G/'. No separate files created, and much shorter and easier to understand.
du -h | awk '$1 ~ /[0-9]G/'
Thanks. Much nicer.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.