|
|
09-23-2012
, 05:46 PM
|
|
Posts: 905 |
Thanked: 1,723 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#32
|
Well, after just finishing a well constructedsed command
$(echo $name | sed "s/(operator.)/( `echo $oper | sed 's/\(&\)/\\\&/'` )/")
for replacing some chars, I thought s/re/replace/ would be enough? It is for sed.
But ed (and vi) take s/re/replace/ to just replace in that specific line!?
And s/re/replace/g replaces globally (all text lines)?
| The Following 2 Users Say Thank You to Copernicus For This Useful Post: | ||
![]() |
| Thread Tools | Search this Thread |
|
$(echo $name | sed "s/(operator.)/( `echo $oper | sed 's/\(&\)/\\\&/'` )/")
for replacing some chars, I thought s/re/replace/ would be enough? It is for sed.
But ed (and vi) take s/re/replace/ to just replace in that specific line!?
And s/re/replace/g replaces globally (all text lines)?