<?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 functionality in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/2424036#M605</link>
    <description>Hallo Dave&lt;BR /&gt;&lt;BR /&gt;Why don't you try this&lt;BR /&gt;&lt;BR /&gt;cat file_name | awk ? $1=="/bkup/export" ?&lt;BR /&gt;&lt;BR /&gt;I allways prefare awk for it is much more powerfull than  grep is.&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Klaus</description>
    <pubDate>Fri, 26 May 2000 13:17:01 GMT</pubDate>
    <dc:creator>Klaus  Frank</dc:creator>
    <dc:date>2000-05-26T13:17:01Z</dc:date>
    <item>
      <title>grep functionality</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/2424032#M601</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;I have to extract from a file a string that contain slashes. I want to select a particular string from a file, the problem is that there are other lines that contain this string also.  &lt;BR /&gt;&lt;BR /&gt;The file contains the following lines among others. I only want to select the first i.e. not the line containing account.  &lt;BR /&gt;&lt;BR /&gt;/bkup/export&lt;BR /&gt;/bkup/export/account&lt;BR /&gt;&lt;BR /&gt;I have tried using grep but with no sucess.&lt;BR /&gt;&lt;BR /&gt;Can anyone please help me.&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 May 2000 12:32:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/2424032#M601</guid>
      <dc:creator>Dave Walley</dc:creator>
      <dc:date>2000-05-26T12:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: grep functionality</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/2424033#M602</link>
      <description>try grep -x&lt;BR /&gt;&lt;BR /&gt;good luck</description>
      <pubDate>Fri, 26 May 2000 12:43:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/2424033#M602</guid>
      <dc:creator>Patrick Wessel</dc:creator>
      <dc:date>2000-05-26T12:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: grep functionality</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/2424034#M603</link>
      <description>Dave,&lt;BR /&gt;&lt;BR /&gt;Use the 'head' command to strip just the first line returned from grep, e.g.&lt;BR /&gt;&lt;BR /&gt;grep '/bkup/export' filename | head -1&lt;BR /&gt;&lt;BR /&gt;mwa</description>
      <pubDate>Fri, 26 May 2000 13:00:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/2424034#M603</guid>
      <dc:creator>mark alexander</dc:creator>
      <dc:date>2000-05-26T13:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: grep functionality</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/2424035#M604</link>
      <description>This should work:&lt;BR /&gt;  grep "/bkup/export" | grep -v "/bkup/export/"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 May 2000 13:02:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/2424035#M604</guid>
      <dc:creator>Dave Wherry</dc:creator>
      <dc:date>2000-05-26T13:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: grep functionality</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/2424036#M605</link>
      <description>Hallo Dave&lt;BR /&gt;&lt;BR /&gt;Why don't you try this&lt;BR /&gt;&lt;BR /&gt;cat file_name | awk ? $1=="/bkup/export" ?&lt;BR /&gt;&lt;BR /&gt;I allways prefare awk for it is much more powerfull than  grep is.&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Klaus</description>
      <pubDate>Fri, 26 May 2000 13:17:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/2424036#M605</guid>
      <dc:creator>Klaus  Frank</dc:creator>
      <dc:date>2000-05-26T13:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: grep functionality</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/2424037#M606</link>
      <description>Try :&lt;BR /&gt;&lt;BR /&gt;grep '/bkup/export$'  if lines ends w/ export&lt;BR /&gt;&lt;BR /&gt;or grep '/bkup/export ' if not</description>
      <pubDate>Mon, 29 May 2000 13:03:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-functionality/m-p/2424037#M606</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2000-05-29T13:03:30Z</dc:date>
    </item>
  </channel>
</rss>

