Mount point usage

Hi Guys,

I have Solaris 9 and RHEL 5 boxes I implemented script to send me an email when my mount point is > 90.

Now the ouput id like these:

/dev/dsk/emcpower20a 1589461168 1509087840 64478720    96%     /data1
/dev/dsk/emcpower21a 474982909 451894234 18338846       97%     /data2
/dev/dsk/emcpower4a  216851376 213317425 1365438         100%    /data3
/dev/dsk/emcpower30a 782725328 747961996 26936079        97%    /data4

I want the output to be like these:

96%     /data1
97%     /data2
100%    /data3
97%    /data4

How do I do that ?

Thanks in advance...

Please Help !!!!!!!!!!

Try:

awk '{print $5,$6}' OFS='\t' infile

or to also select the lines above 90%:

awk '$5+0>90{print $5,$6}' OFS='\t' infile

On Solaris use /usr/xpg4/bin/awk (you can change the PATH variable in your script)

1 Like

Thanks a lot...

Your code did do the trick for me...