Assuming the following output:
Code:saturn:~# df -h /usr Filesystem Size Used Avail Use% Mounted on /dev/hda6 9.4G 484M 8.9G 6% /usrCode:saturn:~# df -h | grep /usr | awk '{print $4}' 8.9G
Is there a command line program like [tt]df[/tt] that can determine the amount of free space on a partition, but prints out only that number so I can use it in a script?
Thanks for your help.
Assuming the following output:
Code:saturn:~# df -h /usr Filesystem Size Used Avail Use% Mounted on /dev/hda6 9.4G 484M 8.9G 6% /usrCode:saturn:~# df -h | grep /usr | awk '{print $4}' 8.9G
Bookmarks