<?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 -w in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725841#M945833</link>
    <description>Hi Tom.  That script is different from the one which I wrote for my needs completely.  Now there are multiple ways to approach this.  I worked out my script without seeing any others.</description>
    <pubDate>Thu, 16 May 2002 19:52:09 GMT</pubDate>
    <dc:creator>Jeffrey Davis_1</dc:creator>
    <dc:date>2002-05-16T19:52:09Z</dc:date>
    <item>
      <title>grep -w</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725831#M945823</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I am using 11.i and I used the following option in grep command -w to grep for a specific word. (grep -w)&lt;BR /&gt;&lt;BR /&gt;I just found out that -w option doesn't exist on 11.0.&lt;BR /&gt;I don't have 11.0 - does anyone know what is 11.0 equvalent of grep -w?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot!</description>
      <pubDate>Thu, 16 May 2002 16:27:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725831#M945823</guid>
      <dc:creator>andi_1</dc:creator>
      <dc:date>2002-05-16T16:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: grep -w</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725832#M945824</link>
      <description>gnu grep:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Gnu/grep-2.5a/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Gnu/grep-2.5a/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 16 May 2002 16:30:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725832#M945824</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-05-16T16:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: grep -w</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725833#M945825</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;on a 10.20 box&lt;BR /&gt;&lt;BR /&gt;:/home/H092AHE:Sleeves:&amp;gt;grep -w steve /etc/passwd&lt;BR /&gt;grep: illegal option -- w&lt;BR /&gt;&lt;BR /&gt;Have checked man pages for grep -w ( nothing found)&lt;BR /&gt;&lt;BR /&gt;Anyone else ?&lt;BR /&gt;&lt;BR /&gt;Steve&lt;BR /&gt;</description>
      <pubDate>Thu, 16 May 2002 16:31:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725833#M945825</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-05-16T16:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: grep -w</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725834#M945826</link>
      <description>Unfortunately, my code will be running on customer's systems, and I cannot rely that they have gnu grep.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 May 2002 16:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725834#M945826</guid>
      <dc:creator>andi_1</dc:creator>
      <dc:date>2002-05-16T16:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: grep -w</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725835#M945827</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You can circumvent this by enclosing your string in quotes and providing whitespace, for instance:&lt;BR /&gt;&lt;BR /&gt;# grep -e "^abc" -e " def " -e "abc$"&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 16 May 2002 16:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725835#M945827</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-16T16:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: grep -w</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725836#M945828</link>
      <description>Nope, no -w in 10.20 or 11.0.&lt;BR /&gt;It's apparently a new feature of 11i.  I don't think there is an equivalent option in HP-UX grep.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 16 May 2002 16:33:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725836#M945828</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-05-16T16:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: grep -w</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725837#M945829</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Sorry, the example should have been:&lt;BR /&gt;&lt;BR /&gt;# grep -e "^abc" -e " abc " -e "abc$" filename&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 16 May 2002 16:35:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725837#M945829</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-16T16:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: grep -w</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725838#M945830</link>
      <description>Hi all.  I've got to say - Ugh!&lt;BR /&gt;I've been working on a script the past two days to help me pull the encrypted passwd entry from the respective system accounts in the /tcb/files/auth/* (trusted system dbase area)and pad those entries into field 2 of a temp/psuedo file that resembles the /etc/passwd file.  (Basically, recreating the original /etc/passwd file from before the system was trusted.)  I can then run this script on any system, extract and pad the necessary encrypted info, then take that output file and run it through the Crack5.0 engine.&lt;BR /&gt;Well, to make a long story short.  I've been stuck on one particular area of the script.  Everything about it worked fine except for one small thing.  How to adapt for a search for a user who pulled up multiple matches. i.e. "uucp" would find "uucp and nuucp".&lt;BR /&gt;I knew the answer was with using regular expressions, but couldn't find the exact fit.  And then I came accross this post today about "grep -w".  In fact, I tried playing around with that earlier today, but made no headway.  Basically, my problem was I was using the "/" from grep's metacharacter regular expressions.  I took these out and it worked fine.  &lt;BR /&gt;&lt;BR /&gt;Thanks for the post.&lt;BR /&gt;&lt;BR /&gt;Like I said - To make a short story long!&lt;BR /&gt;Just because it is a nice clean way to parse and pad this info I will attatch the script in the event someone wants to use it as they work with Crack.  Or if someone can add it to the script archives.</description>
      <pubDate>Thu, 16 May 2002 19:33:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725838#M945830</guid>
      <dc:creator>Jeffrey Davis_1</dc:creator>
      <dc:date>2002-05-16T19:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: grep -w</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725839#M945831</link>
      <description>I got this off the forums a while back.  I'd give credit to who wrote it, however, it's not in the script nor do I remember ...</description>
      <pubDate>Thu, 16 May 2002 19:44:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725839#M945831</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2002-05-16T19:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: grep -w</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725840#M945832</link>
      <description>One more time .. this time with the attachment.&lt;BR /&gt;============================&lt;BR /&gt;I got this off the forums a while back.  I'd give credit to who wrote it, however, it's not in the script nor do I remember ...&lt;BR /&gt;</description>
      <pubDate>Thu, 16 May 2002 19:44:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725840#M945832</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2002-05-16T19:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: grep -w</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725841#M945833</link>
      <description>Hi Tom.  That script is different from the one which I wrote for my needs completely.  Now there are multiple ways to approach this.  I worked out my script without seeing any others.</description>
      <pubDate>Thu, 16 May 2002 19:52:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-w/m-p/2725841#M945833</guid>
      <dc:creator>Jeffrey Davis_1</dc:creator>
      <dc:date>2002-05-16T19:52:09Z</dc:date>
    </item>
  </channel>
</rss>

