Re: sed help!

From: Bowser325 (mccallaREMOVE_at_thepacketlounge.org)
Date: 08/20/04


Date: Fri, 20 Aug 2004 11:10:23 -0400

Thanks a lot. Any chance of getting a brief explanation of the {1,\}?
Thanks.
Aaron.

"Laurenz Albe" <albe@culturallNOSPAM.com> wrote in message
news:cg4l85$mh2$1@at-vie-newsmaster01.nextra.at...
> Bowser325 <mccallaREMOVE!@thepacketlounge.org> wrote:
> > I get each digit in the numeric string being replaced
by
> > the 10 digit replacement string.
> >
> > sed /Serial/s/\[0-9]\/1234567890/g filename
>
> Try
>
> sed -e '/Serial/s/[0-9]\{1,\}/12345/g' filename
>
> Yours,
> Laurenz Albe