<?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,print in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-print/m-p/2777294#M76289</link>
    <description>Dear Friend,&lt;BR /&gt;&lt;BR /&gt;how to pass an argument as below :&lt;BR /&gt;cat test.log|grep -v "*"|awk '{print '"TRY",$1"-"$2,"&amp;gt;","/home/"$1".LOG".$3'}' &amp;gt; test1.log&lt;BR /&gt;&lt;BR /&gt;I've got this error :&lt;BR /&gt;&lt;BR /&gt;awk: The statement cannot be correctly parsed.</description>
    <pubDate>Thu, 01 Aug 2002 04:56:36 GMT</pubDate>
    <dc:creator>System Dude_1</dc:creator>
    <dc:date>2002-08-01T04:56:36Z</dc:date>
    <item>
      <title>awk,print</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-print/m-p/2777294#M76289</link>
      <description>Dear Friend,&lt;BR /&gt;&lt;BR /&gt;how to pass an argument as below :&lt;BR /&gt;cat test.log|grep -v "*"|awk '{print '"TRY",$1"-"$2,"&amp;gt;","/home/"$1".LOG".$3'}' &amp;gt; test1.log&lt;BR /&gt;&lt;BR /&gt;I've got this error :&lt;BR /&gt;&lt;BR /&gt;awk: The statement cannot be correctly parsed.</description>
      <pubDate>Thu, 01 Aug 2002 04:56:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-print/m-p/2777294#M76289</guid>
      <dc:creator>System Dude_1</dc:creator>
      <dc:date>2002-08-01T04:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: awk,print</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-print/m-p/2777295#M76290</link>
      <description>I think it should be like this:&lt;BR /&gt;awk '{print '"TRY",$1"-"$2,"&amp;gt;","/home/"$1".LOG."$3}'&lt;BR /&gt;&lt;BR /&gt;Notice that I removed "'" before "}" and that I moved the "." before $3&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Aug 2002 05:11:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-print/m-p/2777295#M76290</guid>
      <dc:creator>Maarten van Rossen</dc:creator>
      <dc:date>2002-08-01T05:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: awk,print</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-print/m-p/2777296#M76291</link>
      <description>You'll have to drop the single quite just after the "print" as well.&lt;BR /&gt;&lt;BR /&gt;awk '{print "TRY",$1"-"$2,"&amp;gt;/home/"$1".LOG".$3}'</description>
      <pubDate>Thu, 01 Aug 2002 05:16:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-print/m-p/2777296#M76291</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-08-01T05:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: awk,print</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-print/m-p/2777297#M76292</link>
      <description>hi,&lt;BR /&gt;Try this:&lt;BR /&gt;cat test.log|grep -v "*"|awk '{print '"TRY",$1"-"$2,"&amp;gt;","/home/"$1".LOG",$3'}' &amp;gt; test1.log &lt;BR /&gt;&lt;BR /&gt;*Note:&lt;BR /&gt;I put "," instead of "." - befor the last $3.&lt;BR /&gt;&lt;BR /&gt;I hope it helps.</description>
      <pubDate>Thu, 01 Aug 2002 05:30:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-print/m-p/2777297#M76292</guid>
      <dc:creator>Gadi</dc:creator>
      <dc:date>2002-08-01T05:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: awk,print</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-print/m-p/2777298#M76293</link>
      <description>usage of printf is to prefer above print inside of awk.&lt;BR /&gt;&lt;BR /&gt;awk '{printf "TRY %s,%s &amp;gt; /home/%s.LOG.%s",$1,$2,$1,$3 }' &amp;gt;test1.log&lt;BR /&gt;&lt;BR /&gt;..or something like it.&lt;BR /&gt;Your quoting of print goes wrong: print '"..."..".."' inside of body...&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ceesjan&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Aug 2002 06:48:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-print/m-p/2777298#M76293</guid>
      <dc:creator>Ceesjan van Hattum</dc:creator>
      <dc:date>2002-08-01T06:48:13Z</dc:date>
    </item>
  </channel>
</rss>

