HPUX "bdf" , "%" align to right side.

Hi All,
Need you help.
I have HPUX �bdf� output, I need % to be align to right side. if you see there are long
file systems lv so i cant do column formatting.
Any idea or best way to align the "%" to be right side.

/dev/emcvg02/lv01 52428800 29931 49123947 0% /abc/disco/iasbin
rs6abctsm3-b:/com_archive/hpxda120
1048576000 40455420 1008120580 4% /com_archive/hpxda120

"%" align to right side.
------------------------

/dev/emcvg02/lv01 52428800 29931 49123947 0% /abc/disco/iasbin
rs6abctsm3-b:/com_archive/hpxda120
1048576000 40455420 1008120580 4% /com_archive/hpxda120

How are the two examples different? - they seem to be identical.

I cant find the option to attached txt file to post.

Hi.

In the following circumstances:

  • Creating a thread
  • Replying in a thread
  • Editing your post, and clicking the "Go Advanced" button

you will see an area (scroll down) entitled "Additional Options". In there a section "Attach Files" and a button "Manage Attachments" exist. Click that button!

if i use awk look for the colum $5, I will get 0% and " 1008120580" , my objective to align "%" right side the use awk to get "%" file system mount.

Check if this code fills your requriment

bdf | awk 'match($0,/[0-9]+% /) { print substr($0,RSTART,RLENGTH) $NF  } '
1 Like

May be you should give us a bigger picture of what you are trying to do. It can be solved without right aligning the field may be.

help us to help you!

--ahamed

Thanks! Peasant