The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Filesystems, Disks and Memory
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 01-15-2008
ilan ilan is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 101
Hi,

you can just follow the one suggested by ghostdog74 and my point here is to use "df -kp" which will let the script use the POSIX output format so that, awk will always take the right field from df o/p.
Otherwise in conditions like when you have lengthy devive names usage of "df -k | awk..... would pickup the wrong feild and so may raise false alarms on your disk space!!

-ilan