<?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: Formatted echo... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/formatted-echo/m-p/2623540#M926249</link>
    <description>I think there is a small mistake...&lt;BR /&gt;i=3&lt;BR /&gt;&lt;BR /&gt; echo $i | /usr/bin/awk '{printf "%03i", $0 }'&lt;BR /&gt;%03ii&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sat, 01 Dec 2001 22:58:57 GMT</pubDate>
    <dc:creator>Rui Vilao</dc:creator>
    <dc:date>2001-12-01T22:58:57Z</dc:date>
    <item>
      <title>Formatted echo...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/formatted-echo/m-p/2623538#M926247</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Does anyone know how I could in a unix script produce a formated (3 digits) echo:&lt;BR /&gt;&lt;BR /&gt;i=7&lt;BR /&gt;echo $i &lt;BR /&gt;i=30&lt;BR /&gt;echo $i&lt;BR /&gt;&lt;BR /&gt;result should look like:&lt;BR /&gt;&lt;BR /&gt;007&lt;BR /&gt;030&lt;BR /&gt;&lt;BR /&gt;TIA,&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;&lt;BR /&gt;Rui.</description>
      <pubDate>Sat, 01 Dec 2001 22:28:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/formatted-echo/m-p/2623538#M926247</guid>
      <dc:creator>Rui Vilao</dc:creator>
      <dc:date>2001-12-01T22:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Formatted echo...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/formatted-echo/m-p/2623539#M926248</link>
      <description>echo $i | /usr/bin/awk '{printf "%03i", $0 }'</description>
      <pubDate>Sat, 01 Dec 2001 22:44:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/formatted-echo/m-p/2623539#M926248</guid>
      <dc:creator>Sebastien Masson</dc:creator>
      <dc:date>2001-12-01T22:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Formatted echo...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/formatted-echo/m-p/2623540#M926249</link>
      <description>I think there is a small mistake...&lt;BR /&gt;i=3&lt;BR /&gt;&lt;BR /&gt; echo $i | /usr/bin/awk '{printf "%03i", $0 }'&lt;BR /&gt;%03ii&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 01 Dec 2001 22:58:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/formatted-echo/m-p/2623540#M926249</guid>
      <dc:creator>Rui Vilao</dc:creator>
      <dc:date>2001-12-01T22:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Formatted echo...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/formatted-echo/m-p/2623541#M926250</link>
      <description>Hmm..strange because it works for me.&lt;BR /&gt;&lt;BR /&gt;# i=3&lt;BR /&gt;# echo $i | /usr/bin/awk '{printf "%03i", $0 }' &lt;BR /&gt;003&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# what /usr/bin/awk&lt;BR /&gt;/usr/bin/awk:&lt;BR /&gt;         $Revision: 82.2 $&lt;BR /&gt;&lt;BR /&gt;I running that on HP-UX 11.00&lt;BR /&gt;</description>
      <pubDate>Sat, 01 Dec 2001 23:08:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/formatted-echo/m-p/2623541#M926250</guid>
      <dc:creator>Sebastien Masson</dc:creator>
      <dc:date>2001-12-01T23:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Formatted echo...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/formatted-echo/m-p/2623542#M926251</link>
      <description>why not just use the system command printf&lt;BR /&gt;man 1 printf&lt;BR /&gt;&lt;BR /&gt;i=3&lt;BR /&gt;printf "%03i\n" $i</description>
      <pubDate>Sun, 02 Dec 2001 00:32:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/formatted-echo/m-p/2623542#M926251</guid>
      <dc:creator>Curtis Larson_1</dc:creator>
      <dc:date>2001-12-02T00:32:26Z</dc:date>
    </item>
  </channel>
</rss>

