<?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 Output in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-output/m-p/3434437#M860022</link>
    <description>Hmm... for readability reasons printf may be an option? &lt;BR /&gt; &lt;BR /&gt;{ printf ("'%s'\n", $1); }&lt;BR /&gt; &lt;BR /&gt;Best regards...&lt;BR /&gt;Dietmar.</description>
    <pubDate>Wed, 01 Dec 2004 15:51:57 GMT</pubDate>
    <dc:creator>Dietmar Konermann</dc:creator>
    <dc:date>2004-12-01T15:51:57Z</dc:date>
    <item>
      <title>Awk Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-output/m-p/3434435#M860020</link>
      <description>I have a quick loop that grabs some data and then parses it out and prints with '{print $1}' at the end of the awk statement. Well, if the print for $1 returns a value of Roger, how would I get print statement to show 'Roger' vs just Rogeer with no quotes?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 01 Dec 2004 15:44:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-output/m-p/3434435#M860020</guid>
      <dc:creator>Ryan B</dc:creator>
      <dc:date>2004-12-01T15:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Awk Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-output/m-p/3434436#M860021</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here is one way to do it:&lt;BR /&gt;&lt;BR /&gt;awk '{print "\047" $1 "\047"}' somefile&lt;BR /&gt;&lt;BR /&gt;The "\047" specifies the single quote character by specifying the ASCII value of that character.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Dec 2004 15:51:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-output/m-p/3434436#M860021</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2004-12-01T15:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Awk Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-output/m-p/3434437#M860022</link>
      <description>Hmm... for readability reasons printf may be an option? &lt;BR /&gt; &lt;BR /&gt;{ printf ("'%s'\n", $1); }&lt;BR /&gt; &lt;BR /&gt;Best regards...&lt;BR /&gt;Dietmar.</description>
      <pubDate>Wed, 01 Dec 2004 15:51:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-output/m-p/3434437#M860022</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2004-12-01T15:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Awk Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-output/m-p/3434438#M860023</link>
      <description>Dietmar~&lt;BR /&gt;&lt;BR /&gt;I tried the "\047" and that works, but I wanted to try yours, but I must be doing something incorrect on the syntax you sent...I get the error '(' not expected...Any thoughts?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 01 Dec 2004 16:07:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-output/m-p/3434438#M860023</guid>
      <dc:creator>Ryan B</dc:creator>
      <dc:date>2004-12-01T16:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Awk Output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-output/m-p/3434439#M860024</link>
      <description>Hi, Ryan!&lt;BR /&gt;&lt;BR /&gt;The statement I posted is a valid awk statement. However, it looks like you are calling awk from a shell (script), and you use ' to pass the statements to awk. This calling shell interferes, since it interpretes the ' before calling awk.&lt;BR /&gt; &lt;BR /&gt;So I think John's approach is better for your needs.&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt;Dietmar.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Dec 2004 17:03:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-output/m-p/3434439#M860024</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2004-12-01T17:03:42Z</dc:date>
    </item>
  </channel>
</rss>

