<?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 Unix Script Help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script-help/m-p/4062603#M306124</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Need some help.&lt;BR /&gt;&lt;BR /&gt;I use command as follow :-&lt;BR /&gt;bdf |grep /usr |awk '{print $(NF-2)/1024/1024,$(NF-1),$NF}' &lt;BR /&gt;&lt;BR /&gt;will give me the following output :&lt;BR /&gt;&lt;BR /&gt;23103823 53% /usr.&lt;BR /&gt;&lt;BR /&gt;How could I change the 23103823 in Kb to Gb and  the output should be in integer (discard the floating).&lt;BR /&gt;&lt;BR /&gt;The expected output should be :-&lt;BR /&gt;&lt;BR /&gt;22 53% /usr&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Wed, 29 Aug 2007 13:23:44 GMT</pubDate>
    <dc:creator>KAMARULZAMAN HJ ALI</dc:creator>
    <dc:date>2007-08-29T13:23:44Z</dc:date>
    <item>
      <title>Unix Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script-help/m-p/4062603#M306124</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Need some help.&lt;BR /&gt;&lt;BR /&gt;I use command as follow :-&lt;BR /&gt;bdf |grep /usr |awk '{print $(NF-2)/1024/1024,$(NF-1),$NF}' &lt;BR /&gt;&lt;BR /&gt;will give me the following output :&lt;BR /&gt;&lt;BR /&gt;23103823 53% /usr.&lt;BR /&gt;&lt;BR /&gt;How could I change the 23103823 in Kb to Gb and  the output should be in integer (discard the floating).&lt;BR /&gt;&lt;BR /&gt;The expected output should be :-&lt;BR /&gt;&lt;BR /&gt;22 53% /usr&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 29 Aug 2007 13:23:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script-help/m-p/4062603#M306124</guid>
      <dc:creator>KAMARULZAMAN HJ ALI</dc:creator>
      <dc:date>2007-08-29T13:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script-help/m-p/4062604#M306125</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# bdf |grep /usr |awk '{printf {printf "%4.2f\n", $(NF-2)/1024/1024,$(NF-1),$NF}'&lt;BR /&gt;&lt;BR /&gt;...and you asked for an integer but what you seem to want is a 2-decimal real number as above.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 29 Aug 2007 13:29:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script-help/m-p/4062604#M306125</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-08-29T13:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script-help/m-p/4062605#M306126</link>
      <description>Using bdfmegs would help:&lt;BR /&gt;&lt;BR /&gt;Here is the gb enhancement:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1048509" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1048509&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and here is the latest version:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1124262" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1124262&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 29 Aug 2007 13:33:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script-help/m-p/4062605#M306126</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-08-29T13:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script-help/m-p/4062606#M306127</link>
      <description>I would use the int function:&lt;BR /&gt;&lt;BR /&gt;bdf |grep /usr |awk '{print int($(NF-2)/1024/1024),$(NF-1),$NF}'&lt;BR /&gt;&lt;BR /&gt;There will be no decimals or anything and it will not round up. It just strips the decimal and what is after it away.</description>
      <pubDate>Wed, 29 Aug 2007 13:47:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script-help/m-p/4062606#M306127</guid>
      <dc:creator>Glenn S. Davidson</dc:creator>
      <dc:date>2007-08-29T13:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unix Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unix-script-help/m-p/4062607#M306128</link>
      <description># bdf /usr |awk '{print $(NF-2)/(1024^2),$(NF-1),$NF}'&lt;BR /&gt;&lt;BR /&gt;~cheers</description>
      <pubDate>Wed, 29 Aug 2007 14:01:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unix-script-help/m-p/4062607#M306128</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-08-29T14:01:14Z</dc:date>
    </item>
  </channel>
</rss>

