fork download
  1. #!/bin/bash
  2.  
  3.  
  4. if [[ $2 =~ ^[1-99]$ ]];
  5. then
  6. VAL=$2%
  7. else
  8. VAL=90%
  9. fi
  10.  
  11. while read line;do
  12. awk '$5 >= "$VAL" && $5 <= "99.99%" {print $6}'
  13. done
Success #stdin #stdout 0.01s 5268KB
stdin
Filesystem            kbytes    used   avail capacity  Mounted on
/                    1817191  398236 1418955    22%    /
/dev                 1817191  398236 1418955    22%    /dev
/lib                 248686736 5245041 243441695     3%    /lib
/local               2087376   45915 2041461     3%    /local
/platform            248686736 5245041 243441695     3%    /platform
/sbin                248686736 5245041 243441695     3%    /sbin
/spool               1048423     171 1048252     1%    /spool
/tmp                 2093389  125843 1967546     7%    /tmp
/usr                 248686736 5245041 243441695     3%    /usr
proc                       0       0       0     0%    /proc
ctfs                       0       0       0     0%    /system/contract
mnttab                     0       0       0     0%    /etc/mnttab
objfs                      0       0       0     0%    /system/object
swap                 8388608  942376 7446232    12%    /etc/svc/volatile
/platform/sun4v/lib/libc_psr/libc_psr_hwcap2.so.1
                     248686736 5245041 243441695     3%    /platform/sun4v/lib/libc_psr.so.1
/platform/sun4v/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
                     248686736 5245041 243441695     3%    /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd                         0       0       0     0%    /dev/fd
swap                 8388608  942376 7446232    12%    /var/run
naga:/vol/home/ug    2147483648 1430359632 717124016    67%    /home/ug
naga:/vol/shr/solaris/sparc/bin,odin,thor:/shr/solaris/sparc/bin
                     20971520 1035076 19936444     5%    /share/bin
naga:/vol/home/pg    2147483648 1430359632 717124016    67%    /home/pg
naga:/vol/home8/staff/q
                     2147483648 1585944976 561538672    74%    /home/staff/q
naga:/vol/pkg0/solaris/sparc/emacs,thor,odin:/pkg0/solaris/sparc/emacs
                     209715200 35838164 173877036    18%    /packages/emacs
naga:/vol/home8/staff/o
                     2147483648 1585944976 561538672    74%    /home/staff/o
wraith:/csoracle1    10326764 8106690 2116807    80%    /packages/csoracle
naga:/vol/home7/staff/g
                     2147483648 1585944976 561538672    74%    /home/staff/g
naga:/vol/home4/staff/t
                     2147483648 1234172656 913310992    58%    /home/staff/t
naga:/vol/pkg0/solaris/sparc/readline,thor,odin:/pkg0/solaris/sparc/readline
                     209715200 35838164 173877036    18%    /packages/readline
naga:/vol/pkg0/solaris/sparc/tcl,thor,odin:/pkg0/solaris/sparc/tcl
                     209715200 35838164 173877036    18%    /packages/tcl
naga:/vol/shr/solaris/sparc/etc,odin,thor:/shr/solaris/sparc/etc
                     20971520 1035076 19936444     5%    /share/etc
nimrod:/vol/Solaris/data
                     536870912 164299884 372571028    31%    /data/solaris
naga:/vol/pkg0/solaris/sparc/apache,thor,odin:/pkg0/solaris/sparc/apache
                     209715200 35838164 173877036    18%    /packages/apache
naga:/vol/pkg0/solaris/sparc/apache2,thor,odin:/pkg0/solaris/sparc/apache2
                     209715200 35838164 173877036    18%    /packages/apache2
naga:/vol/shr/common,odin,thor:/shr/common
                     20971520 1035076 19936444     5%    /share/common
naga:/vol/pkg0/solaris/sparc/openssl,thor,odin:/pkg0/solaris/sparc/openssl
                     209715200 35838164 173877036    18%    /packages/openssl
naga:/vol/pkg0/solaris/sparc/cc,thor,odin:/pkg0/solaris/sparc/cc
                     209715200 35838164 173877036    18%    /packages/cc
naga:/vol/pkg0/solaris/sparc/pdq,thor,odin:/pkg0/solaris/sparc/pdq
                     209715200 35838164 173877036    18%    /packages/pdq
naga:/vol/pkg0/solaris/sparc/gcc,thor,odin:/pkg0/solaris/sparc/gcc
                     209715200 35838164 173877036    18%    /packages/gcc
naga:/vol/pkg0/solaris/sparc/zlib,thor,odin:/pkg0/solaris/sparc/zlib
                     209715200 35838164 173877036    18%    /packages/zlib
naga:/vol/shr/solaris/sparc/ns3,odin,thor:/shr/solaris/sparc/ns3
                     20971520 1035076 19936444     5%    /share/ns3
naga:/vol/pkg0/solaris/sparc/passwd,thor,odin:/pkg0/solaris/sparc/passwd
                     209715200 35838164 173877036    18%    /packages/passwd
naga:/vol/shr/solaris/sparc/config,odin,thor:/shr/solaris/sparc/config
                     20971520 1035076 19936444     5%    /share/config
naga:/vol/home2/staff/a
                     2147483648 857533564 1289950084    40%    /home/staff/a
naga:/vol/shr/solaris/sparc/scripts,odin,thor:/shr/solaris/sparc/scripts
                     20971520 1035076 19936444     5%    /share/scripts
naga:/vol/pkg0/solaris/sparc/python,thor,odin:/pkg0/solaris/sparc/python
                     209715200 35838164 173877036    18%    /packages/python
naga:/vol/shr/solaris/sparc/sbin,odin,thor:/shr/solaris/sparc/sbin
                     20971520 1035076 19936444     5%    /share/sbin
naga:/vol/shr/solaris/sparc/lib,odin,thor:/shr/solaris/sparc/lib
                     20971520 1035076 19936444     5%    /share/lib
stdout
/
/dev
/lib
/local
/platform
/sbin
/spool
/tmp
/usr
/proc
/system/contract
/etc/mnttab
/system/object
/etc/svc/volatile


/dev/fd
/var/run
/home/ug

/home/pg



/packages/csoracle