<?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: grep the contents in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-the-contents/m-p/5263921#M660231</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# perl -ne 'm{/a1}...{Number} and print' file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 23 Nov 2010 12:35:27 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2010-11-23T12:35:27Z</dc:date>
    <item>
      <title>grep the contents</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-the-contents/m-p/5263918#M660228</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have a file (T1.txt) which contains below information, i just need to get all "/a1" information and it's Number of records.&lt;BR /&gt;Please help me to get this output -Thanks.&lt;BR /&gt;&lt;BR /&gt;OUTFILE 1: /a1&lt;BR /&gt;Number of records                       = 1319&lt;BR /&gt;OUTFILE 2: /a2&lt;BR /&gt;Number of records                       = 1319&lt;BR /&gt;OUTFILE 3: /a1&lt;BR /&gt;Number of records                       = 1561&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Nov 2010 09:10:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-the-contents/m-p/5263918#M660228</guid>
      <dc:creator>syedar</dc:creator>
      <dc:date>2010-11-23T09:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: grep the contents</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-the-contents/m-p/5263919#M660229</link>
      <description>If there is only 1 /a1 ref and its at the top in the file then a simple cat T1.txt | head -2 would work.</description>
      <pubDate>Tue, 23 Nov 2010 10:52:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-the-contents/m-p/5263919#M660229</guid>
      <dc:creator>N Ward</dc:creator>
      <dc:date>2010-11-23T10:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: grep the contents</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-the-contents/m-p/5263920#M660230</link>
      <description>This may be more useful...&lt;BR /&gt;&lt;BR /&gt;cat T1.txt | awk '/\/a1/, /Number/ {print $0}'</description>
      <pubDate>Tue, 23 Nov 2010 11:00:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-the-contents/m-p/5263920#M660230</guid>
      <dc:creator>N Ward</dc:creator>
      <dc:date>2010-11-23T11:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: grep the contents</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-the-contents/m-p/5263921#M660231</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# perl -ne 'm{/a1}...{Number} and print' file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 23 Nov 2010 12:35:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-the-contents/m-p/5263921#M660231</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-11-23T12:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: grep the contents</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-the-contents/m-p/5263922#M660232</link>
      <description>Thanks for N Ward  your solution is ok.</description>
      <pubDate>Tue, 23 Nov 2010 12:36:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-the-contents/m-p/5263922#M660232</guid>
      <dc:creator>syedar</dc:creator>
      <dc:date>2010-11-23T12:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: grep the contents</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-the-contents/m-p/5263923#M660233</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;If you are satisfied with the answers you received, please assign points to say "thanks" and lead others to a solution for their problems:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 23 Nov 2010 12:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-the-contents/m-p/5263923#M660233</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-11-23T12:50:06Z</dc:date>
    </item>
  </channel>
</rss>

