Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.)

Highlighted

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

}'