Bdf output

Here is my bdf output

#bdf
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3    2097152  217112 1865424   10% /
/dev/vg00/lvol1    1835008  329040 1494288   18% /stand
/dev/vg00/lvol7    10485760 7864080 2601240   75% /var
/dev/vg00/lvol8    8454144  486597 7469647    6% /var/adm/crash
/dev/vg00/lvol6    5242880 3036056 2189632   58% /usr
/dev/vg00/lvol5    2097152   21952 2059232    1% /tmp
/dev/vg00/lvol4    12582912 7433992 5109456   59% /opt
/dev/vg00/lv_app    131072    1141  121818    1% /app
/dev/vg00/lv_common
                   31457280 22302666 8582476   72% /app/common

I am running this command, "bdf | tail +2 |awk '{print $1, $5, $6}'" But it is not able to awk the last line properly

#bdf | tail +2 |awk '{print $1, $5, $6}'
/dev/vg00/lvol3 10% /
/dev/vg00/lvol1 18% /stand
/dev/vg00/lvol7 75% /var
/dev/vg00/lvol8 6% /var/adm/crash
/dev/vg00/lvol6 58% /usr
/dev/vg00/lvol5 1% /tmp
/dev/vg00/lvol4 59% /opt
/dev/vg00/lv_app 1% /app
/dev/vg00/lv_common
31457280 /app/common

Please suggest me any command where i can get the last line output also in %.

Thanks to all..

Try this,

bdf | tail +2 |awk '{if(/^[0-9]/){print $1,$4,$5} else {print $1, $5, $6}}' 

Hi Praving..Still the output comes same

mlbept0340-root> bdf | tail +2 |awk '{if(/^[0-9]/){print $1,$4,$5} else {print $1, $5, $6}}'
/dev/vg00/lvol3 10% /
/dev/vg00/lvol1 18% /stand
/dev/vg00/lvol7 75% /var
/dev/vg00/lvol8 6% /var/adm/crash
/dev/vg00/lvol6 58% /usr
/dev/vg00/lvol5 1% /tmp
/dev/vg00/lvol4 59% /opt
/dev/vg00/lv_app 1% /app
/dev/vg00/lv_common
31457280 /app/common

I am expecting the output as below

/dev/vg00/lvol3 10% /
/dev/vg00/lvol1 18% /stand
/dev/vg00/lvol7 75% /var
/dev/vg00/lvol8 6% /var/adm/crash
/dev/vg00/lvol6 58% /usr
/dev/vg00/lvol5 1% /tmp
/dev/vg00/lvol4 59% /opt
/dev/vg00/lv_app 1% /app
/dev/vg00/lv_common 72% /app/common

Original bdf

Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3    2097152  217056 1865480   10% /
/dev/vg00/lvol1    1835008  329040 1494288   18% /stand
/dev/vg00/lvol7    10485760 7864144 2601176   75% /var
/dev/vg00/lvol8    8454144  486597 7469647    6% /var/adm/crash
/dev/vg00/lvol6    5242880 3036056 2189632   58% /usr
/dev/vg00/lvol5    2097152   21952 2059232    1% /tmp
/dev/vg00/lvol4    12582912 7433992 5109456   59% /opt
/dev/vg00/lv_app    131072    1141  121818    1% /app
/dev/vg00/lv_common
                   31457280 22302666 8582476   72% /app/common

Its working fine at my end.

# cat bdffile
filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 217056 1865480 10% /
/dev/vg00/lvol1 1835008 329040 1494288 18% /stand
/dev/vg00/lvol7 10485760 7864144 2601176 75% /var
/dev/vg00/lvol8 8454144 486597 7469647 6% /var/adm/crash
/dev/vg00/lvol6 5242880 3036056 2189632 58% /usr
/dev/vg00/lvol5 2097152 21952 2059232 1% /tmp
/dev/vg00/lvol4 12582912 7433992 5109456 59% /opt
/dev/vg00/lv_app 131072 1141 121818 1% /app
/dev/vg00/lv_common
31457280 22302666 8582476 72% /app/common
# awk 'NR>1{if(/^[0-9]/){print $1,$4,$5} else {print $1, $5, $6}}' bdffile
O/P
/dev/vg00/lvol3 10% /
/dev/vg00/lvol1 18% /stand
/dev/vg00/lvol7 75% /var
/dev/vg00/lvol8 6% /var/adm/crash
/dev/vg00/lvol6 58% /usr
/dev/vg00/lvol5 1% /tmp
/dev/vg00/lvol4 59% /opt
/dev/vg00/lv_app 1% /app
/dev/vg00/lv_common
31457280 72% /app/common

We need to know the character after the first /dev/vg00/lv_common .

What is the output from this enquiry to make invisible characters visible? :

bdf | sed -n l
awk 'NF==1{p=$0;getline;$0=p RS $0} {print $1,$5,$6}' infile
awk '$5!~/%/{p=$0;getline;$0=p RS $0} {print $1,$5,$6}' infile