<?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: How to grep using &amp;quot;*&amp;quot; in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920458#M104520</link>
    <description>&lt;BR /&gt;grep -v "/oracle/.*/sapdata" filelist&lt;BR /&gt;&lt;BR /&gt;I think that will exclude anything that starts with oracle and ends with sapdata. &lt;BR /&gt;&lt;BR /&gt;* in regex means match 0 or more of the preceding character. &lt;BR /&gt;</description>
    <pubDate>Tue, 23 Aug 2005 15:07:40 GMT</pubDate>
    <dc:creator>Marvin Strong</dc:creator>
    <dc:date>2005-08-23T15:07:40Z</dc:date>
    <item>
      <title>How to grep using "*"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920456#M104518</link>
      <description>I have a file called filelist with following lines in them:&lt;BR /&gt;&lt;BR /&gt;/cdrom&lt;BR /&gt;/usr/local/bin&lt;BR /&gt;/oracle/ABC/sapdata&lt;BR /&gt;/oracle/DEF/sapdata&lt;BR /&gt;/oracle/ABC/archlog&lt;BR /&gt;&lt;BR /&gt;I want to grep out /oracle/*/sapdata and am using the following command which is not working:&lt;BR /&gt;&lt;BR /&gt;# grep -v /oracle/*/sapdata filelist&lt;BR /&gt;&lt;BR /&gt;I get the following output:&lt;BR /&gt;/cdrom&lt;BR /&gt;/usr/local/bin&lt;BR /&gt;/oracle/ABC/sapdata&lt;BR /&gt;/oracle/DEF/sapdata&lt;BR /&gt;/oracle/ABC/archlog&lt;BR /&gt;&lt;BR /&gt;I am expecting /oracle/ABC/sapdata and /oracle/DEF/sapdata to be excluded.&lt;BR /&gt;&lt;BR /&gt;Please help, thanks.</description>
      <pubDate>Tue, 23 Aug 2005 14:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920456#M104518</guid>
      <dc:creator>Pactiv Development</dc:creator>
      <dc:date>2005-08-23T14:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep using "*"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920457#M104519</link>
      <description>Do you have other lines with 'sapdata' in them?&lt;BR /&gt;&lt;BR /&gt;Could you do:&lt;BR /&gt;&lt;BR /&gt;grep -v sapdata filelist</description>
      <pubDate>Tue, 23 Aug 2005 14:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920457#M104519</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-08-23T14:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep using "*"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920458#M104520</link>
      <description>&lt;BR /&gt;grep -v "/oracle/.*/sapdata" filelist&lt;BR /&gt;&lt;BR /&gt;I think that will exclude anything that starts with oracle and ends with sapdata. &lt;BR /&gt;&lt;BR /&gt;* in regex means match 0 or more of the preceding character. &lt;BR /&gt;</description>
      <pubDate>Tue, 23 Aug 2005 15:07:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920458#M104520</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2005-08-23T15:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep using "*"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920459#M104521</link>
      <description>try this&lt;BR /&gt;&lt;BR /&gt;grep '^/oracle/' filelist |grep '/sapdata$'</description>
      <pubDate>Tue, 23 Aug 2005 15:09:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920459#M104521</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-08-23T15:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep using "*"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920460#M104522</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;have a look at this page, it gives a good idea how to use wildcard with grep.&lt;BR /&gt;(You'll have more fun than reading a man page)&lt;BR /&gt;Many examples for beginners!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://pegasus.rutgers.edu/~elflord/unix/grep.html#wildcards" target="_blank"&gt;http://pegasus.rutgers.edu/~elflord/unix/grep.html#wildcards&lt;/A&gt;</description>
      <pubDate>Tue, 23 Aug 2005 15:10:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920460#M104522</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2005-08-23T15:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep using "*"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920461#M104523</link>
      <description>oops, sorry I miss read your request...  never mind</description>
      <pubDate>Tue, 23 Aug 2005 15:11:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920461#M104523</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-08-23T15:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep using "*"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920462#M104524</link>
      <description>revised...&lt;BR /&gt;&lt;BR /&gt; grep -v '^/oracle/' test.dat |grep -v '/sapdata$'</description>
      <pubDate>Tue, 23 Aug 2005 15:11:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920462#M104524</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-08-23T15:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep using "*"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920463#M104525</link>
      <description>I think you only need to put quotes around your search text.&lt;BR /&gt;&lt;BR /&gt;# grep -v "/oracle/*/sapdata" filelist&lt;BR /&gt; &lt;BR /&gt;Otherwise the shell will try to expand the file paths.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Tue, 23 Aug 2005 15:56:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920463#M104525</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-08-23T15:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep using "*"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920464#M104526</link>
      <description>I agree with Marvin and Rodney's solution i.e.&lt;BR /&gt;&lt;BR /&gt;# grep -v '/oracle/.*/sapdata' &lt;INPUT_FILE&gt;&lt;BR /&gt;&lt;BR /&gt;should do the trick...regards!&lt;/INPUT_FILE&gt;</description>
      <pubDate>Tue, 23 Aug 2005 17:41:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920464#M104526</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-08-23T17:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep using "*"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920465#M104527</link>
      <description>Pactiv Development,&lt;BR /&gt;&lt;BR /&gt;grep with a combination of -v and some quotations around your search string just might do the trick.&lt;BR /&gt;&lt;BR /&gt;Peace and Chicken Grease,&lt;BR /&gt;&lt;BR /&gt;John E. Ophious</description>
      <pubDate>Tue, 23 Aug 2005 19:30:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920465#M104527</guid>
      <dc:creator>John E.Ophious</dc:creator>
      <dc:date>2005-08-23T19:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to grep using "*"</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920466#M104528</link>
      <description>grep -v "/oracle/.*/sapdata" filelist from Marvin Strong did the trick, thanks.</description>
      <pubDate>Wed, 31 Aug 2005 09:36:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-grep-using-quot-quot/m-p/4920466#M104528</guid>
      <dc:creator>Pactiv Development</dc:creator>
      <dc:date>2005-08-31T09:36:52Z</dc:date>
    </item>
  </channel>
</rss>

