<?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 qustion in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880396#M100731</link>
    <description>The easiest way (of course) is to use GNU grep with the -w option:&lt;BR /&gt;&lt;BR /&gt;  -w, --word-regexp         force PATTERN to match only whole words&lt;BR /&gt;&lt;BR /&gt;# grep -w mmarano infile</description>
    <pubDate>Mon, 13 Jan 2003 15:28:40 GMT</pubDate>
    <dc:creator>H.Merijn Brand (procura</dc:creator>
    <dc:date>2003-01-13T15:28:40Z</dc:date>
    <item>
      <title>Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880385#M100720</link>
      <description>Hello guys,&lt;BR /&gt;I have a file whit 3 names inside, mmarano smmarano mmarano1.&lt;BR /&gt;I must find only mmarano, not smmarano and mmarano1.&lt;BR /&gt;I use grep to serch, but I see all the names, I try whit grep "^mmarano$", but this command not function.&lt;BR /&gt;I'm sure that somebody can help me.....I hope.&lt;BR /&gt;&lt;BR /&gt;Thenks &lt;BR /&gt;&lt;BR /&gt;Manuel</description>
      <pubDate>Mon, 13 Jan 2003 15:14:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880385#M100720</guid>
      <dc:creator>Manuel_8</dc:creator>
      <dc:date>2003-01-13T15:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880386#M100721</link>
      <description>Manuel,&lt;BR /&gt;&lt;BR /&gt;James F.'s method should work.&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Mon, 13 Jan 2003 15:05:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880386#M100721</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2003-01-13T15:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880387#M100722</link>
      <description>Hi (again) Manuel:&lt;BR /&gt;&lt;BR /&gt;This is clearer:&lt;BR /&gt;&lt;BR /&gt;# grep mmarano filename| grep -v smmarano|grep -v mmarano1&lt;BR /&gt;&lt;BR /&gt;That is, &lt;FILENAME&gt; is your file.  No assumptions are made as to where one any line(s) the tokens appear.&lt;BR /&gt;&lt;BR /&gt;The 'grep -x mmarano' form suggested above and the regular expression ^mmarano$ accomplish the same thing -- they assume that the entire input line matches the string or regular expression.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Mon, 13 Jan 2003 15:11:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880387#M100722</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-01-13T15:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880388#M100723</link>
      <description>Hi Manuel,&lt;BR /&gt;&lt;BR /&gt;# grep mmarano file&lt;BR /&gt;ore&lt;BR /&gt;# cat file | grep mmarano&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Mon, 13 Jan 2003 15:18:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880388#M100723</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-01-13T15:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880389#M100724</link>
      <description>1. Look at if the different regex exploitation of egrep can help&lt;BR /&gt;2. use word bounds in regex engines that support it (why do I always think in perlish styles ? :)&lt;BR /&gt;&lt;BR /&gt;# perl -ne'/\bmmarano\b/ or print' datafile</description>
      <pubDate>Mon, 13 Jan 2003 15:18:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880389#M100724</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-01-13T15:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880390#M100725</link>
      <description>Give this a try&lt;BR /&gt;&lt;BR /&gt;cat &lt;FILENAME&gt; | grep '^mmarino$'&lt;/FILENAME&gt;</description>
      <pubDate>Mon, 13 Jan 2003 15:18:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880390#M100725</guid>
      <dc:creator>Scott_130</dc:creator>
      <dc:date>2003-01-13T15:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880391#M100726</link>
      <description>Manuel,&lt;BR /&gt;&lt;BR /&gt;Try grep -x mmarano.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 13 Jan 2003 15:19:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880391#M100726</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-01-13T15:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880392#M100727</link>
      <description>funny - when I try the same thing it works perfectly for me</description>
      <pubDate>Mon, 13 Jan 2003 15:19:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880392#M100727</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-13T15:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880393#M100728</link>
      <description>Oh I see - are you just typing grep "^mmarano$"...&lt;BR /&gt;no  i was typing cat file | grep  "^mmarano$" &lt;BR /&gt;that works for me.</description>
      <pubDate>Mon, 13 Jan 2003 15:21:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880393#M100728</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-01-13T15:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880394#M100729</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;Me, too.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 13 Jan 2003 15:24:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880394#M100729</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-01-13T15:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880395#M100730</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Here's one simple way"&lt;BR /&gt;&lt;BR /&gt;# cat /tmp/grep|grep mmarano|grep -v smmarano|grep -v mmarano1&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 13 Jan 2003 15:25:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880395#M100730</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-01-13T15:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880396#M100731</link>
      <description>The easiest way (of course) is to use GNU grep with the -w option:&lt;BR /&gt;&lt;BR /&gt;  -w, --word-regexp         force PATTERN to match only whole words&lt;BR /&gt;&lt;BR /&gt;# grep -w mmarano infile</description>
      <pubDate>Mon, 13 Jan 2003 15:28:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880396#M100731</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-01-13T15:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880397#M100732</link>
      <description>grep -e "^mmarano$" -e " mmarano$" -e "^mmarano " -e " mmarano "&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 13 Jan 2003 15:45:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880397#M100732</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2003-01-13T15:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880398#M100733</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use -x (eXact) option, this Matches are recognized only when the entire input line matches the fixed string or regular expression.&lt;BR /&gt;&lt;BR /&gt;grep -x mmarano file&lt;BR /&gt;&lt;BR /&gt;Of course, to do this between "mmarano" must exist al least blank spaces that limit the name like a one word.&lt;BR /&gt;&lt;BR /&gt;I've tried with "grep ^mmarano file" and works fine!&lt;BR /&gt;&lt;BR /&gt;If you have an inmediate charater delimiting mmarano name, you will use it into the match string, i.e. if you have a ":" character after "mmarano" string, you can specify exactly by: "grep mmarano: file"&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Mon, 13 Jan 2003 15:50:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880398#M100733</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2003-01-13T15:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Grep qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880399#M100734</link>
      <description>grep " mmarano"</description>
      <pubDate>Tue, 14 Jan 2003 05:01:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-qustion/m-p/2880399#M100734</guid>
      <dc:creator>Chia-Wei</dc:creator>
      <dc:date>2003-01-14T05:01:31Z</dc:date>
    </item>
  </channel>
</rss>

