vi :s/r

2007-12-24 23:47:00

hi all,

how to search for /XXX

in /XXX/rest/of/dir/structure in a script

and replace with /newdir/new/XXX/

eg just to change

/XXX/blah

with

/newdir/new/XXX/blah

in lots of lines of code !

thought that

:s/XXX/r/newdir/new/XXX would work

Apparently not due to / being the delimiter in the command.

Any clues ?

****************************************************************************************

This E-mail is from O2. The E-mail and any files
transmitted with it are confidential and may also be privileged and intended
solely for the use of the individual or entity to whom they are addressed.
Any unauthorised direct or indirect dissemination, distribution or copying
of this message and any attachments is strictly prohibited. If you have
received the E-mail in error please notify postmaster at O2.com or
telephone ++ 353 1 6095000.

*****************************************************************************************

Comments

Got something to say?

You must be logged in to post a comment.