<?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 problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678632#M52635</link>
    <description>&lt;BR /&gt;&lt;BR /&gt;do:&lt;BR /&gt;&lt;BR /&gt;cat file | grep -e "TOM"-e "JIM"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ciao&lt;BR /&gt;Federico</description>
    <pubDate>Fri, 08 Mar 2002 08:24:16 GMT</pubDate>
    <dc:creator>federico_3</dc:creator>
    <dc:date>2002-03-08T08:24:16Z</dc:date>
    <item>
      <title>grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678628#M52631</link>
      <description>how can i use grep to find two different things on the same time.&lt;BR /&gt;for example i wanna find "TOM" and "JIM" on the same time.</description>
      <pubDate>Fri, 08 Mar 2002 08:18:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678628#M52631</guid>
      <dc:creator>thebeatlesguru</dc:creator>
      <dc:date>2002-03-08T08:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678629#M52632</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Not really meant to do this but&lt;BR /&gt;script with parameters&lt;BR /&gt;file tom jim&lt;BR /&gt;&lt;BR /&gt;file=$1&lt;BR /&gt;n1=$2&lt;BR /&gt;n2=$3&lt;BR /&gt;cat $file|while read line&lt;BR /&gt;do&lt;BR /&gt;echo $line|grep $n1&lt;BR /&gt;echo $line|grep $n2&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;              Steve Steel</description>
      <pubDate>Fri, 08 Mar 2002 08:22:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678629#M52632</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-03-08T08:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678630#M52633</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You have two ways with grep:&lt;BR /&gt;&lt;BR /&gt;# grep -i -e tom -e jim filename&lt;BR /&gt;&lt;BR /&gt;# grep -i -E 'tom|jim' filename&lt;BR /&gt;&lt;BR /&gt;"-i" makes the search case-insensitive.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Mar 2002 08:23:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678630#M52633</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-03-08T08:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678631#M52634</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This will do the trick.&lt;BR /&gt;&lt;BR /&gt;# grep -e TOM -e JIM file_to_grep&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Fri, 08 Mar 2002 08:24:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678631#M52634</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-03-08T08:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678632#M52635</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;do:&lt;BR /&gt;&lt;BR /&gt;cat file | grep -e "TOM"-e "JIM"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ciao&lt;BR /&gt;Federico</description>
      <pubDate>Fri, 08 Mar 2002 08:24:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678632#M52635</guid>
      <dc:creator>federico_3</dc:creator>
      <dc:date>2002-03-08T08:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678633#M52636</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try it with egrep ie:&lt;BR /&gt;&lt;BR /&gt;egrep '(TOM|JIM)' &lt;FILE&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/FILE&gt;</description>
      <pubDate>Fri, 08 Mar 2002 08:25:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678633#M52636</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2002-03-08T08:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: grep problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678634#M52637</link>
      <description>1 - grep -e "TOM" -e "JIM" &lt;FILE&gt;&lt;BR /&gt;2 - (my preferred) egrep "TOM|JIM" &lt;FILE&gt;&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/FILE&gt;&lt;/FILE&gt;</description>
      <pubDate>Fri, 08 Mar 2002 09:52:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-problem/m-p/2678634#M52637</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2002-03-08T09:52:25Z</dc:date>
    </item>
  </channel>
</rss>

