Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot properly Filter BDF Output

 
SOLVED
Go to solution
Highlighted
VVS
Regular Advisor

Cannot properly Filter BDF Output

Hi All
We have script which sends us mail if any file system goes above 95%.
bdf|awk '{if ($5 > 95) print $5,$6}'| mailx -s "FILE SYSTEM ABOVE %"
But some file system have long name as shown below .I attached the output of BDF command)
/dev/vg_data/sapmnt_d11
1048576 472834 540011 47% /sapmnt/D11
/dev/vg_data/stage_920_64
5120000 2665501 2301094 54% /oracle/stage/920_64
/dev/vg_data/oracle_stage_817_64
1196032 944039 237285 80% /oracle/stage/817_64
/dev/vg_data/oracle_d11
1024000 408710 576846 41% /oracle/D11

So the script doesnot give any information if file system goes above 95%in above case

Please suggest me any other command?
Or Is there any command which will take field from right instead of left.

Thanks with Regards
Work is life, you know, and without it, there's nothing but fear and insecurity.
2 REPLIES 2
Highlighted
James R. Ferguson
Acclaimed Contributor
Solution

Re: Cannot properly Filter BDF Output

Highlighted
VVS
Regular Advisor

Re: Cannot properly Filter BDF Output

i got satisfactory solution
Work is life, you know, and without it, there's nothing but fear and insecurity.