<?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 command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032252#M761406</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Thankyou Roberts. It worked.&lt;BR /&gt;&lt;BR /&gt;Thank you all.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Wed, 07 Mar 2007 03:16:24 GMT</pubDate>
    <dc:creator>Raju_S</dc:creator>
    <dc:date>2007-03-07T03:16:24Z</dc:date>
    <item>
      <title>awk command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032247#M761401</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;When i issue the command shown below it works fine in HP-UX.&lt;BR /&gt;&lt;BR /&gt;cat /etc/passwd |awk -F ":" '{print $1"|"$3"|"$4"|"$5"|"$6"|"$7}' &amp;gt;a.txt&lt;BR /&gt;&lt;BR /&gt;But when i try the same command in Solaris it gives the following error...&lt;BR /&gt;&lt;BR /&gt;awk: syntax error near line 1&lt;BR /&gt;awk: bailing out near line 1&lt;BR /&gt;&lt;BR /&gt;Please resolve this issue.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regard</description>
      <pubDate>Wed, 07 Mar 2007 01:07:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032247#M761401</guid>
      <dc:creator>Raju_S</dc:creator>
      <dc:date>2007-03-07T01:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: awk command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032248#M761402</link>
      <description>rsh solaris_host 'cat /etc/passwd' | awk [...]&lt;BR /&gt;&lt;BR /&gt;If you expect "awk" to work the same on&lt;BR /&gt;different systems, you would be wise to use&lt;BR /&gt;the same "awk" program on those systems.  I&lt;BR /&gt;hear that GNU "awk" ("gawk") is fairly&lt;BR /&gt;portable.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/gawk/gawk.html" target="_blank"&gt;http://www.gnu.org/software/gawk/gawk.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you want advice on "awk" on Solaris, you&lt;BR /&gt;might also try a Solaris forum.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sun.com/bigadmin/home/index.html" target="_blank"&gt;http://www.sun.com/bigadmin/home/index.html&lt;/A&gt;</description>
      <pubDate>Wed, 07 Mar 2007 01:38:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032248#M761402</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-03-07T01:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: awk command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032249#M761403</link>
      <description>I would suspect it's because you don't have spaces around your strings and $ variables??</description>
      <pubDate>Wed, 07 Mar 2007 01:52:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032249#M761403</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-07T01:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: awk command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032250#M761404</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;It is still not working with spaces.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 07 Mar 2007 02:06:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032250#M761404</guid>
      <dc:creator>Raju_S</dc:creator>
      <dc:date>2007-03-07T02:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: awk command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032251#M761405</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this,&lt;BR /&gt;&lt;BR /&gt;# cat /etc/passwd |nawk -F ":" '{print $1"|"$3"|"$4"|"$5"|"$6"|"$7}' &amp;gt;a.txt&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Wed, 07 Mar 2007 03:13:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032251#M761405</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2007-03-07T03:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: awk command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032252#M761406</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Thankyou Roberts. It worked.&lt;BR /&gt;&lt;BR /&gt;Thank you all.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 07 Mar 2007 03:16:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032252#M761406</guid>
      <dc:creator>Raju_S</dc:creator>
      <dc:date>2007-03-07T03:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: awk command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032253#M761407</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;It worked when used with nawk.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 07 Mar 2007 03:20:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-command/m-p/5032253#M761407</guid>
      <dc:creator>Raju_S</dc:creator>
      <dc:date>2007-03-07T03:20:32Z</dc:date>
    </item>
  </channel>
</rss>

