Operating System - Linux
1752805 Members
5722 Online
108789 Solutions
New Discussion юеВ

Cannot properly Filter BDF Output

 
SOLVED
Go to solution
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
James R. Ferguson
Acclaimed Contributor
Solution

Re: Cannot properly Filter BDF Output

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.