1748199 Members
2608 Online
108759 Solutions
New Discussion

Re: bdf output

 
SOLVED
Go to solution
Ajin_1
Valued Contributor

bdf output

Hi Experts

 

I want the filesystem and Mount point output from bdf

How can i execute bdf with options

 

 

Thanks & Regards
Ajin.S
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: bdf output

>I want the filesystem and Mount point output from bdf

 

Doesn't it already do that?

(There are some cases where it is split on two lines.)

Re: bdf output

What exactly you need ?  By giving bdf command (without Option) itself you can see Mountpoint and FS details

Ajin_1
Valued Contributor

Re: bdf output

Hi

 

I want the bdf output with LV and Mount Point only.

Thanks & Regards
Ajin.S
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Dennis Handly
Acclaimed Contributor
Solution

Re: bdf output

>I want the bdf output with LV and Mount Point only.

 

I suppose something like:

bdf | awk '

BEGIN { getline } # skip title

{

if (NF == 1) { # merge split lines

   dev = $1

   getline

   print dev, $NF

   next

}

print $1, $NF

}'