<?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 grep functionality in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/3369982#M867709</link>
    <description>Hi.&lt;BR /&gt;&lt;BR /&gt;I have a file with multiple fields as follows&lt;BR /&gt;&lt;BR /&gt;dwafcs is 7.3.4 &lt;BR /&gt;dwerp is 8.1.7 &lt;BR /&gt;pwcst is 7.3.4  &lt;BR /&gt;pwoverp is 8.1.7 &lt;BR /&gt;&lt;BR /&gt;I want to select only those lines where the last letter of the first field is p, in the example above I would want lines 2 and 4. How can I do it?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Dave</description>
    <pubDate>Wed, 01 Sep 2004 09:36:20 GMT</pubDate>
    <dc:creator>Dave Walley</dc:creator>
    <dc:date>2004-09-01T09:36:20Z</dc:date>
    <item>
      <title>grep functionality</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/3369982#M867709</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;I have a file with multiple fields as follows&lt;BR /&gt;&lt;BR /&gt;dwafcs is 7.3.4 &lt;BR /&gt;dwerp is 8.1.7 &lt;BR /&gt;pwcst is 7.3.4  &lt;BR /&gt;pwoverp is 8.1.7 &lt;BR /&gt;&lt;BR /&gt;I want to select only those lines where the last letter of the first field is p, in the example above I would want lines 2 and 4. How can I do it?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Wed, 01 Sep 2004 09:36:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/3369982#M867709</guid>
      <dc:creator>Dave Walley</dc:creator>
      <dc:date>2004-09-01T09:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: grep functionality</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/3369983#M867710</link>
      <description>In the simplest case: -&lt;BR /&gt;&lt;BR /&gt;grep "^.*p " file&lt;BR /&gt;&lt;BR /&gt;Except this will also match a line eg "pcswt ip 7.3.4" (since it's greedy by default).  The following is the non-greedy equivelant and should do what you want: -&lt;BR /&gt;&lt;BR /&gt;grep "^[^ ]*p " file</description>
      <pubDate>Wed, 01 Sep 2004 09:41:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/3369983#M867710</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2004-09-01T09:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: grep functionality</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/3369984#M867711</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;I will try to do it with awk assuming that the field is always the first one..&lt;BR /&gt;&lt;BR /&gt; awk '$1 ~ /p$/ {print}' data&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 01 Sep 2004 09:42:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/3369984#M867711</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-09-01T09:42:39Z</dc:date>
    </item>
  </channel>
</rss>

