Re: Using {}

From: Matty (mattycruft_at_daemons.net)
Date: 09/28/03


Date: Sun, 28 Sep 2003 12:29:37 -0400

On Sun, 28 Sep 2003 12:28:28 -0400, Matty wrote:

> I am attempting to use {} in a regex, but for some
> reason, it is giving me grief:
>
> grep g\{5\,10\} file
>
> The file has the following sample data:
>
> ddddd
> dddddd
> ddddddd
> ddddddddd
> ddddddddddd
> ddddddddddddd

The d's should be g's. Sorry about that.

>
> Any idea what I am doing wrong? This looks like
> the correct format from checking various websites.
> I am attempting to use Solaris egrep/fgrep/grep.
>
> Thanks,
> Matty



Relevant Pages

  • Re: Using {}
    ... > I am attempting to use in a regex, ... > reason, it is giving me grief: ...
    (comp.unix.shell)
  • Using {}
    ... reason, it is giving me grief: ... The file has the following sample data: ...
    (comp.unix.shell)
  • Re: Using {}
    ... > reason, it is giving me grief: ... > The file has the following sample data: ...
    (comp.unix.shell)
  • mkcd error
    ... For some reason all of my servers are now giving me grief when trying to create dvd mksysb's. ...
    (AIX-L)
  • Re: Grep frustration
    ... The sample data below is read into a list, ... to do is grep() the list so that I'm left with only files that end in ... Are the two shorter matches more efficient than a single one for some reason? ...
    (perl.beginners)