<?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 grep pattern in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-pattern/m-p/2512584#M895960</link>
    <description>I have some files with a date sring of the format "01-10-99" in them. I can do cat myfile | grep '01-' to get all in Jan, or cat myfile | grep '\-99' to get all in 99, but I can't find a grep pattern match to get all jan 99 - ie '01-*-99' does not work, although it does work if I am using ls | grep a*c etc. What am I missing?</description>
    <pubDate>Mon, 02 Apr 2001 19:51:39 GMT</pubDate>
    <dc:creator>Dave Chamberlin</dc:creator>
    <dc:date>2001-04-02T19:51:39Z</dc:date>
    <item>
      <title>grep pattern</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-pattern/m-p/2512584#M895960</link>
      <description>I have some files with a date sring of the format "01-10-99" in them. I can do cat myfile | grep '01-' to get all in Jan, or cat myfile | grep '\-99' to get all in 99, but I can't find a grep pattern match to get all jan 99 - ie '01-*-99' does not work, although it does work if I am using ls | grep a*c etc. What am I missing?</description>
      <pubDate>Mon, 02 Apr 2001 19:51:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-pattern/m-p/2512584#M895960</guid>
      <dc:creator>Dave Chamberlin</dc:creator>
      <dc:date>2001-04-02T19:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: grep pattern</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-pattern/m-p/2512585#M895961</link>
      <description>i do not think grep or egrep allows an 'and' character, another way to do this is...&lt;BR /&gt;grep 01 &amp;gt; /tmp/jan&lt;BR /&gt;grep 99 /tmp/jan&lt;BR /&gt;&lt;BR /&gt;however,the 'or' is allowed&lt;BR /&gt;egrep 'exp1|exp2' file&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Apr 2001 20:04:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-pattern/m-p/2512585#M895961</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-04-02T20:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: grep pattern</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-pattern/m-p/2512586#M895962</link>
      <description>01-10-99&lt;BR /&gt;egrep "01-[[:digit:]][[:digit:]]-99"</description>
      <pubDate>Mon, 02 Apr 2001 20:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-pattern/m-p/2512586#M895962</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2001-04-02T20:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: grep pattern</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-pattern/m-p/2512587#M895963</link>
      <description>thanks for the quick responses - chris' solution works just fine!</description>
      <pubDate>Mon, 02 Apr 2001 20:32:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-pattern/m-p/2512587#M895963</guid>
      <dc:creator>Dave Chamberlin</dc:creator>
      <dc:date>2001-04-02T20:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: grep pattern</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-pattern/m-p/2512588#M895964</link>
      <description>Hi,&lt;BR /&gt;less foolproof, but less typing work ;)&lt;BR /&gt;&lt;BR /&gt;grep "01-..-99" yourfile&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Tue, 03 Apr 2001 07:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-pattern/m-p/2512588#M895964</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-04-03T07:30:50Z</dc:date>
    </item>
  </channel>
</rss>

