Re: sed question.
On Fri, 04 Jun 2004 11:28:50 -0400
Ralph Crongeyer <email@example.com> wrote:
> Carlos Hanson wrote:
> >On Fri, 04 Jun 2004 10:31:07 -0400
> >Ralph Crongeyer <firstname.lastname@example.org> wrote:
> >>Hi all,
> >>I need to do a pattern match with sed of "(" and ")". I need to
> >replace >every ( with "(" and every ) with ")" on every line.
> >sed 's/[()]/"&"/g'
> Carlos, Thanks!
> By the way, what does the & mean?
It refers to "the portion of the pattern space which matched". Quoted
from the sed man page.
Webmaster and Postmaster
Tigard-Tualatin School District