Hello,
I am still in the process of learning Shell Programming. The online manual, that I am referring to had following question:
I made a script as follows:
df --block-size=1GB | tr -s ' '| cut -d' ' -f2,5 | grep -v 1GB* | sort -k1,2n | tail -1 | cut -d' ' -f2 | cut -d '%' -f1
and it gave me correct result of the free space (in % without the % sign) on my machine's largest partition.
But I am sure that there exists a better and probably shorter script than the one made by me. Can someone provide such a script?
Thanks.