The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 06-04-2008
radoulov's Avatar
radoulov radoulov is offline Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,928
And another one:


Code:
df -k | 
  while read fs kb us av ca mo; do 
    case $ca in 
      *[0-9]% ) printf "%s\n" "$ca";;
    esac
done | sort -rn

You should use df -P on Linux.