<?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: Help needed in awk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-in-awk/m-p/3122614#M717671</link>
    <description>or&lt;BR /&gt;&lt;BR /&gt;awk -F"_" '{print$1,$2;}'&lt;BR /&gt;Rgds&lt;BR /&gt;JL</description>
    <pubDate>Tue, 18 Nov 2003 15:23:01 GMT</pubDate>
    <dc:creator>Jean-Luc Oudart</dc:creator>
    <dc:date>2003-11-18T15:23:01Z</dc:date>
    <item>
      <title>Help needed in awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-in-awk/m-p/3122612#M717669</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have few log files like:&lt;BR /&gt;&lt;BR /&gt;handler_5620_15:09:48.log&lt;BR /&gt;handler_566_14:31:07.log&lt;BR /&gt;handler_7995_15:28:39.log&lt;BR /&gt;&lt;BR /&gt;and more...&lt;BR /&gt;&lt;BR /&gt;I have to extract the portion till the second underscore (till handler_5620) for all the logs. I know how to accomplish this in SHELL script. But I have to do this using AWK.&lt;BR /&gt;&lt;BR /&gt;Can anyone please help me out in this problem.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rahul</description>
      <pubDate>Tue, 18 Nov 2003 15:13:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-in-awk/m-p/3122612#M717669</guid>
      <dc:creator>Rahul_13</dc:creator>
      <dc:date>2003-11-18T15:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-in-awk/m-p/3122613#M717670</link>
      <description>try this:&lt;BR /&gt;&lt;BR /&gt;awk 'BEGIN { FS = "_"}; { print $1, $2 }' [filenamehere]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Tue, 18 Nov 2003 15:19:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-in-awk/m-p/3122613#M717670</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2003-11-18T15:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-in-awk/m-p/3122614#M717671</link>
      <description>or&lt;BR /&gt;&lt;BR /&gt;awk -F"_" '{print$1,$2;}'&lt;BR /&gt;Rgds&lt;BR /&gt;JL</description>
      <pubDate>Tue, 18 Nov 2003 15:23:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-in-awk/m-p/3122614#M717671</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2003-11-18T15:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-in-awk/m-p/3122615#M717672</link>
      <description>ls -1 | while read FN&lt;BR /&gt;do&lt;BR /&gt;echo $FN | awk -F_ '{print $1 "_" $2}'&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;will put the "_" back in the ouptput string..</description>
      <pubDate>Tue, 18 Nov 2003 15:26:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-in-awk/m-p/3122615#M717672</guid>
      <dc:creator>Stuart Abramson_2</dc:creator>
      <dc:date>2003-11-18T15:26:19Z</dc:date>
    </item>
  </channel>
</rss>

