<?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 awk help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2990773#M124282</link>
    <description>&lt;BR /&gt;  Hi&lt;BR /&gt;&lt;BR /&gt;   Can I format the output by using awk. I know it is possible thru printf. But I read it somewhere that awk can do this. but remembering the format. Can some one help me out?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Shahul</description>
    <pubDate>Fri, 06 Jun 2003 07:37:04 GMT</pubDate>
    <dc:creator>Shahul</dc:creator>
    <dc:date>2003-06-06T07:37:04Z</dc:date>
    <item>
      <title>awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2990773#M124282</link>
      <description>&lt;BR /&gt;  Hi&lt;BR /&gt;&lt;BR /&gt;   Can I format the output by using awk. I know it is possible thru printf. But I read it somewhere that awk can do this. but remembering the format. Can some one help me out?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Shahul</description>
      <pubDate>Fri, 06 Jun 2003 07:37:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2990773#M124282</guid>
      <dc:creator>Shahul</dc:creator>
      <dc:date>2003-06-06T07:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2990774#M124283</link>
      <description>Hi Shahul,&lt;BR /&gt;&lt;BR /&gt;Yup, printf is what you're looking for; check out man 3 printf for the specific format string you need.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren.</description>
      <pubDate>Fri, 06 Jun 2003 07:44:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2990774#M124283</guid>
      <dc:creator>Darren Prior</dc:creator>
      <dc:date>2003-06-06T07:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2990775#M124284</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Ex:&lt;BR /&gt;awk '{printf("hi00%2.0f \n", NR+9)}&lt;BR /&gt;&lt;BR /&gt;---------------------------&lt;BR /&gt; Formatted printouts are of the form printf( "format\n", value1, value2, ... valueN)&lt;BR /&gt;  e.g. printf("howdy %-8s What it is bro. %.2f\n", $1, $2*$3)&lt;BR /&gt; %s = string&lt;BR /&gt; %-8s = 8 character string left justified&lt;BR /&gt;  %.2f = number with 2 places after .&lt;BR /&gt; %6.2f = field 6 chars with 2 chars after .&lt;BR /&gt; \n is newline&lt;BR /&gt; \t is a tab&lt;BR /&gt;&lt;BR /&gt;--------&lt;BR /&gt;HTH&lt;BR /&gt;-tamil&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Jun 2003 07:46:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2990775#M124284</guid>
      <dc:creator>V.Tamilvanan</dc:creator>
      <dc:date>2003-06-06T07:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2990776#M124285</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;what kind of data do you want to format ?&lt;BR /&gt;&lt;BR /&gt;Numeric integer:&lt;BR /&gt;printf("%06d\n", var);&lt;BR /&gt;will print integer with leading nulls&lt;BR /&gt;Float:&lt;BR /&gt;printf("%8.2f\n", var);&lt;BR /&gt;will print floating with decimal precision of two.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 06 Jun 2003 07:47:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2990776#M124285</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2003-06-06T07:47:04Z</dc:date>
    </item>
  </channel>
</rss>

