Re: grep: match i to j occurences of abc
From: Penna Elabi (terebinthus_at_go.com)
Date: 08/31/03
- Previous message: Numberwhun: "Re: Remove <CR> across HTML files"
- In reply to: Erik Max Francis: "Re: grep: match i to j occurences of abc"
- Next in thread: Erik Max Francis: "Re: grep: match i to j occurences of abc"
- Reply: Erik Max Francis: "Re: grep: match i to j occurences of abc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Aug 2003 23:51:52 -0700
Erik Max Francis <max@alcyone.com> wrote in message news:<3F511483.5E185940@alcyone.com>...
>
> It works fine with a pattern and egrep; on the contrary, grep is exactly
> the right tool for the job. (Duh on you.) The regular expression he
> wants is:
>
> grep '^(abc ?){3,5}$' test
Thanks! Works great with egrep (but not with grep (Digital UNIX V4.0G)).
- Previous message: Numberwhun: "Re: Remove <CR> across HTML files"
- In reply to: Erik Max Francis: "Re: grep: match i to j occurences of abc"
- Next in thread: Erik Max Francis: "Re: grep: match i to j occurences of abc"
- Reply: Erik Max Francis: "Re: grep: match i to j occurences of abc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|