<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: awk question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806064#M267403</link>
    <description>&lt;!--!*#--&gt;OK, all 4.5 ports are now up&lt;BR /&gt;&lt;BR /&gt;a5:/u/usr/merijn 101 &amp;gt; di -?&lt;BR /&gt;di: illegal option -- ?&lt;BR /&gt;di ver 4.5    Default Format: smbuvpT&lt;BR /&gt;Usage: di [-ant] [-d display-size] [-f format] [-x exclude-fstyp-list]&lt;BR /&gt;       [-I include-fstyp-list] [file [...]]&lt;BR /&gt;   -a   : print all mounted devices&lt;BR /&gt;   -d x : size to print blocks in (512 - POSIX, k - kbytes,&lt;BR /&gt;          m - megabytes, g - gigabytes, t - terabytes, h - human readable).&lt;BR /&gt;   -f x : use format string &lt;X&gt;&lt;BR /&gt;   -I x : include only file system types in &lt;X&gt;&lt;BR /&gt;   -x x : exclude file system types in &lt;X&gt;&lt;BR /&gt;   -l   : display local filesystems only&lt;BR /&gt;   -n   : don't print header&lt;BR /&gt;   -t   : print totals&lt;BR /&gt; Format string values:&lt;BR /&gt;    m - mount point                     M - mount point, full length&lt;BR /&gt;    b - total kbytes                    B - kbytes available for use&lt;BR /&gt;    u - used kbytes                     c - calculated kbytes in use&lt;BR /&gt;    f - kbytes free                     v - kbytes available&lt;BR /&gt;    p - percentage not avail. for use   1 - percentage used&lt;BR /&gt;    2 - percentage of user-available space in use.&lt;BR /&gt;    i - total file slots (i-nodes)      U - used file slots&lt;BR /&gt;    F - free file slots                 P - percentage file slots used&lt;BR /&gt;    s - filesystem name                 S - filesystem name, full length&lt;BR /&gt;    t - disk partition type             T - partition type, full length&lt;BR /&gt;See manual page for more options.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cmve.net/~mbrand/di-4.5-10.20.sd.bz" target="_blank"&gt;http://www.cmve.net/~mbrand/di-4.5-10.20.sd.bz&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.cmve.net/~mbrand/di-4.5-11.00.sd.bz" target="_blank"&gt;http://www.cmve.net/~mbrand/di-4.5-11.00.sd.bz&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.cmve.net/~mbrand/di-4.5-11.11.sd.bz" target="_blank"&gt;http://www.cmve.net/~mbrand/di-4.5-11.11.sd.bz&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.cmve.net/~mbrand/di-4.5-11.23.sd.bz" target="_blank"&gt;http://www.cmve.net/~mbrand/di-4.5-11.23.sd.bz&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn&lt;/X&gt;&lt;/X&gt;&lt;/X&gt;</description>
    <pubDate>Fri, 16 Jun 2006 03:04:12 GMT</pubDate>
    <dc:creator>H.Merijn Brand (procura</dc:creator>
    <dc:date>2006-06-16T03:04:12Z</dc:date>
    <item>
      <title>awk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806053#M267392</link>
      <description>Hi!&lt;BR /&gt;How to get free space left on file system /var/opt/ignite/recovery/archives&lt;BR /&gt;from the following output?&lt;BR /&gt;&lt;BR /&gt;root@lev /&amp;gt;bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3    1048576  318056  724872   30% /&lt;BR /&gt;/dev/vg00/lvol1    1081344  178744  895592   17% /stand&lt;BR /&gt;/dev/vg00/lvol10   20480000 9382744 11010664   46% /var&lt;BR /&gt;/dev/vg01/ignite   116686848 101012876 14694408   87% /var/opt/ignite/recovery/archives&lt;BR /&gt;/dev/vg00/lvol9    3768320 2676568 1083264   71% /usr&lt;BR /&gt;/dev/vg00/lvol6    1048576  140544  900976   13% /tmp&lt;BR /&gt;/dev/vg00/lvol8    20480000 2682088 17658928   13% /opt&lt;BR /&gt;/dev/vg00/lvol7    1048576   23512 1021288    2% /home&lt;BR /&gt;/dev/vg00/lvol5    10256384 3250963 6567630   33% /depot&lt;BR /&gt;/dev/vg00/lvol4    2097152 1888853  195328   91% /.audit&lt;BR /&gt;anny:/ignite       143327232   51600 134320912    0% /ignite_Old</description>
      <pubDate>Wed, 14 Jun 2006 23:46:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806053#M267392</guid>
      <dc:creator>Igor Sovin</dc:creator>
      <dc:date>2006-06-14T23:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: awk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806054#M267393</link>
      <description>Hi Igor, &lt;BR /&gt;&lt;BR /&gt;You can try this, &lt;BR /&gt;&lt;BR /&gt;# bdf /dev/vg01/ignite | awk '{a+=$4} END {printf "%d\n",a}'&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 14 Jun 2006 23:52:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806054#M267393</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-06-14T23:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: awk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806055#M267394</link>
      <description>Try following command :&lt;BR /&gt;&lt;BR /&gt;bdf |grep -i /var/opt/ignite/recovery/archives |awk '{print $4}'&lt;BR /&gt;&lt;BR /&gt;output will be in KB&lt;BR /&gt;&lt;BR /&gt;-Amit</description>
      <pubDate>Wed, 14 Jun 2006 23:54:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806055#M267394</guid>
      <dc:creator>Chauhan Amit</dc:creator>
      <dc:date>2006-06-14T23:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: awk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806056#M267395</link>
      <description>Thank you guys!</description>
      <pubDate>Wed, 14 Jun 2006 23:57:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806056#M267395</guid>
      <dc:creator>Igor Sovin</dc:creator>
      <dc:date>2006-06-14T23:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: awk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806057#M267396</link>
      <description>hi igor,&lt;BR /&gt;this u can use and get the bdf result in mb.&lt;BR /&gt;============================================================&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;echo "Filesystem          Mbytes       used      avail %used Mounted on"&lt;BR /&gt;&lt;BR /&gt;bdf | grep -v Filesystem | awk '{ printf("%s %10d %10d %10d %4s  %s\n",$1,$2/1024,$3/1024,$4/1024,$5,$6)}'&lt;BR /&gt;============================================================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Jun 2006 03:02:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806057#M267396</guid>
      <dc:creator>inventsekar_1</dc:creator>
      <dc:date>2006-06-15T03:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: awk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806058#M267397</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;# df -b&lt;BR /&gt;&lt;BR /&gt;rgs,&lt;BR /&gt;&lt;BR /&gt;ran&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Jun 2006 07:46:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806058#M267397</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2006-06-15T07:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: awk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806059#M267398</link>
      <description>Sorry,&lt;BR /&gt;&lt;BR /&gt;df -b|grep -i ignite&lt;BR /&gt;/var/opt/ignite/recovery/archives (/dev/vgvarignite/lvrecovery) :  7676261 Kbytes free&lt;BR /&gt;&lt;BR /&gt;rgs,&lt;BR /&gt;ran</description>
      <pubDate>Thu, 15 Jun 2006 07:48:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806059#M267398</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2006-06-15T07:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: awk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806060#M267399</link>
      <description>hi;&lt;BR /&gt;&lt;BR /&gt;without awk:&lt;BR /&gt;bdf | head -5| tail -1 | tr -s ' ' | cut -f4 -d' '</description>
      <pubDate>Thu, 15 Jun 2006 15:46:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806060#M267399</guid>
      <dc:creator>Kenan Erdey</dc:creator>
      <dc:date>2006-06-15T15:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: awk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806061#M267400</link>
      <description>Wow, I'm surprised that no one suggested the simplest method:&lt;BR /&gt; &lt;BR /&gt;bdf /var/opt/ignite/recovery/archives&lt;BR /&gt; &lt;BR /&gt;No grep, no awk, nothing but bdf. You could pipe the second line from bdf into read and extract just the free space:&lt;BR /&gt; &lt;BR /&gt;bdf /var/opt/ignite/recovery/archives | while read HEADER REPLY&lt;BR /&gt;do&lt;BR /&gt;if [ "$HEADER" = "Filesystem" ]&lt;BR /&gt;then&lt;BR /&gt;read DEV CAP USED FREE PCT FS&lt;BR /&gt;MEGSFREE=$(echo $FREE | awk '{print int($1/1024+.5)}')&lt;BR /&gt;echo "$FS has $FREE Kbytes ($MEGSFREE megs) free space"&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;The above shows both Kb and megs.</description>
      <pubDate>Thu, 15 Jun 2006 20:34:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806061#M267400</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-06-15T20:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: awk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806062#M267401</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think Igors problem was the 2line-output of the bdf command for long device names; Bills response will handle that.&lt;BR /&gt;&lt;BR /&gt;To get a bdf-like 1line-output for further processing in all cases, I suggest (untested):&lt;BR /&gt;&lt;BR /&gt;bdf | awk 'NR&amp;gt;1 {if(ok) print line; ok=0;line=$0}&lt;BR /&gt;NF==1 {line=line" "$0;ok=1}&lt;BR /&gt;NF&amp;gt;5 {ok=1}&lt;BR /&gt;END {print line}'&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Fri, 16 Jun 2006 00:56:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806062#M267401</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-06-16T00:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: awk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806063#M267402</link>
      <description>Why does no-one promote 'di'?&lt;BR /&gt;&lt;A href="http://www.gentoo.com/di/" target="_blank"&gt;http://www.gentoo.com/di/&lt;/A&gt;&lt;BR /&gt;Heh, I didn't know the reference to binary packages from there would be to *my* site. Bet I will have to make 4.5 available soon now, won't I ...&lt;BR /&gt;&lt;BR /&gt;a5:/u/usr/merijn 109 &amp;gt; di -?&lt;BR /&gt;di: illegal option -- ?&lt;BR /&gt;di ver 4.1    Default Format: smbuvpT&lt;BR /&gt;Usage: di [-ant] [-d display-size] [-f format] [-x exclude-fstyp-list]&lt;BR /&gt;       [-I include-fstyp-list] [file [...]]&lt;BR /&gt;   -a   : print all mounted devices&lt;BR /&gt;   -d x : size to print blocks in (512 - POSIX, k - kbytes,&lt;BR /&gt;          m - megabytes, g - gigabytes, t - terabytes, h - human readable).&lt;BR /&gt;   -f x : use format string &lt;X&gt;&lt;BR /&gt;   -I x : include only file system types in &lt;X&gt;&lt;BR /&gt;   -x x : exclude file system types in &lt;X&gt;&lt;BR /&gt;   -l   : display local filesystems only&lt;BR /&gt;   -n   : don't print header&lt;BR /&gt;   -t   : print totals&lt;BR /&gt; Format string values:&lt;BR /&gt;    m - mount point                     M - mount point, full length&lt;BR /&gt;    b - total kbytes                    B - kbytes available for use&lt;BR /&gt;    u - used kbytes                     c - calculated kbytes in use&lt;BR /&gt;    f - kbytes free                     v - kbytes available&lt;BR /&gt;    p - percentage not avail. for use   1 - percentage used&lt;BR /&gt;    2 - percentage of user-available space in use.&lt;BR /&gt;    i - total file slots (i-nodes)      U - used file slots&lt;BR /&gt;    F - free file slots                 P - percentage file slots used&lt;BR /&gt;    s - filesystem name                 S - filesystem name, full length&lt;BR /&gt;    t - disk partition type             T - partition type, full length&lt;BR /&gt;See manual page for more options.&lt;BR /&gt;Exit 1&lt;BR /&gt;a5:/u/usr/merijn 110 &amp;gt; di -ff /tmp&lt;BR /&gt;    Free&lt;BR /&gt;   499.2&lt;BR /&gt;a5:/u/usr/merijn 111 &amp;gt; di -n -ff /tmp&lt;BR /&gt;   499.2&lt;BR /&gt;a5:/u/usr/merijn 112 &amp;gt; di -n -ff -dm /tmp&lt;BR /&gt;   499.2&lt;BR /&gt;a5:/u/usr/merijn 113 &amp;gt; di -n -ff -dk /tmp&lt;BR /&gt;  511221&lt;BR /&gt;a5:/u/usr/merijn 114 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://mirrors.develooper.com/hpux/di-4.1-10.20.sd.bz" target="_blank"&gt;http://mirrors.develooper.com/hpux/di-4.1-10.20.sd.bz&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://mirrors.develooper.com/hpux/di-4.1-11.00.sd.bz" target="_blank"&gt;http://mirrors.develooper.com/hpux/di-4.1-11.00.sd.bz&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://mirrors.develooper.com/hpux/di-4.1-11.11.sd.bz" target="_blank"&gt;http://mirrors.develooper.com/hpux/di-4.1-11.11.sd.bz&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://mirrors.develooper.com/hpux/di-4.1-11.23.sd.bz" target="_blank"&gt;http://mirrors.develooper.com/hpux/di-4.1-11.23.sd.bz&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://mirrors.develooper.com/hpux/di-4.4-11.23.sd.bz" target="_blank"&gt;http://mirrors.develooper.com/hpux/di-4.4-11.23.sd.bz&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn&lt;/X&gt;&lt;/X&gt;&lt;/X&gt;</description>
      <pubDate>Fri, 16 Jun 2006 02:07:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806063#M267402</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-06-16T02:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: awk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806064#M267403</link>
      <description>&lt;!--!*#--&gt;OK, all 4.5 ports are now up&lt;BR /&gt;&lt;BR /&gt;a5:/u/usr/merijn 101 &amp;gt; di -?&lt;BR /&gt;di: illegal option -- ?&lt;BR /&gt;di ver 4.5    Default Format: smbuvpT&lt;BR /&gt;Usage: di [-ant] [-d display-size] [-f format] [-x exclude-fstyp-list]&lt;BR /&gt;       [-I include-fstyp-list] [file [...]]&lt;BR /&gt;   -a   : print all mounted devices&lt;BR /&gt;   -d x : size to print blocks in (512 - POSIX, k - kbytes,&lt;BR /&gt;          m - megabytes, g - gigabytes, t - terabytes, h - human readable).&lt;BR /&gt;   -f x : use format string &lt;X&gt;&lt;BR /&gt;   -I x : include only file system types in &lt;X&gt;&lt;BR /&gt;   -x x : exclude file system types in &lt;X&gt;&lt;BR /&gt;   -l   : display local filesystems only&lt;BR /&gt;   -n   : don't print header&lt;BR /&gt;   -t   : print totals&lt;BR /&gt; Format string values:&lt;BR /&gt;    m - mount point                     M - mount point, full length&lt;BR /&gt;    b - total kbytes                    B - kbytes available for use&lt;BR /&gt;    u - used kbytes                     c - calculated kbytes in use&lt;BR /&gt;    f - kbytes free                     v - kbytes available&lt;BR /&gt;    p - percentage not avail. for use   1 - percentage used&lt;BR /&gt;    2 - percentage of user-available space in use.&lt;BR /&gt;    i - total file slots (i-nodes)      U - used file slots&lt;BR /&gt;    F - free file slots                 P - percentage file slots used&lt;BR /&gt;    s - filesystem name                 S - filesystem name, full length&lt;BR /&gt;    t - disk partition type             T - partition type, full length&lt;BR /&gt;See manual page for more options.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cmve.net/~mbrand/di-4.5-10.20.sd.bz" target="_blank"&gt;http://www.cmve.net/~mbrand/di-4.5-10.20.sd.bz&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.cmve.net/~mbrand/di-4.5-11.00.sd.bz" target="_blank"&gt;http://www.cmve.net/~mbrand/di-4.5-11.00.sd.bz&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.cmve.net/~mbrand/di-4.5-11.11.sd.bz" target="_blank"&gt;http://www.cmve.net/~mbrand/di-4.5-11.11.sd.bz&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.cmve.net/~mbrand/di-4.5-11.23.sd.bz" target="_blank"&gt;http://www.cmve.net/~mbrand/di-4.5-11.23.sd.bz&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn&lt;/X&gt;&lt;/X&gt;&lt;/X&gt;</description>
      <pubDate>Fri, 16 Jun 2006 03:04:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806064#M267403</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-06-16T03:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: awk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806065#M267404</link>
      <description>Hi Igor,&lt;BR /&gt;bdf var/opt/ignite/recovery/archives|\&lt;BR /&gt;awk 'BEGIN         {printf "%-16s %14s %14s %14s %8s %s\n","Filesystem","kbytes","used","avail","%used","Mounted on"}&lt;BR /&gt;     !/Filesystem/ {KBYTES=KBYTES+$2; USED=USED+$3; AVAIL=AVAIL+$4; NBR=++NBR}&lt;BR /&gt;     END           {printf "%-16s %14s %14s %14s  %7s  \n","================","===========","==========","==========","===="&lt;BR /&gt;                    printf "%-16s %14d %s %11d %s %11d %s %4d% \n","total",KBYTES,"Kb",USED,"Kb",AVAIL,"Kb",USED*100/KBYTES                                                                             &lt;BR /&gt;                    printf "%-16s %14d %s %11d %s %11d %s \n"," ",KBYTES/1024,"Mb",USED/1024,"Mb",AVAIL/1024,"Mb"&lt;BR /&gt;                    printf "%-16s %14d %s %11d %s %11d %s \n"," ",KBYTES/1048576,"Gb",USED/1048576,"Gb",AVAIL/1048576,"Gb"}&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Fri, 16 Jun 2006 03:07:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806065#M267404</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-06-16T03:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: awk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806066#M267405</link>
      <description>&lt;!--!*#--&gt;Peter pointed out that I did not test for a long line in a bdf listing. There is an inserted test for a null size and a second read to get the second line. This is common a problem with NFS filesystems (long source names):&lt;BR /&gt; &lt;BR /&gt;bdf /house | while read HEADER REPLY&lt;BR /&gt;do&lt;BR /&gt;  if [ "$HEADER" = "Filesystem" ]&lt;BR /&gt;  then&lt;BR /&gt;    read DEV CAP USED FREE PCT FS&lt;BR /&gt;    [[ "$CAP" = "" ]] &amp;amp;&amp;amp; read CAP USED FREE PCT FS&lt;BR /&gt;    MEGSFREE=$(echo $FREE | awk '{print int($1/1024+.5)}')&lt;BR /&gt;    echo "$FS has $FREE Kbytes ($MEGSFREE megs) free space"&lt;BR /&gt;  fi&lt;BR /&gt;done</description>
      <pubDate>Fri, 16 Jun 2006 06:58:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-question/m-p/3806066#M267405</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-06-16T06:58:11Z</dc:date>
    </item>
  </channel>
</rss>

