The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Filesystems, Disks and Memory
Google UNIX.COM



View Single Post in UNIX 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: 74
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
Reply With Quote