Thanks to all who assisted on this; :%s,/XXX/,/newdir/,g -----Original Message----- From: Moughan, Laurence Sent: 07 October 2002 12:00 To: 'sunmanagers@sunmanagers.org' Subject: vi :s/r 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@O2.com or telephone ++ 353 1 6095000. ***************************************************************************************** _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Mon Oct 7 11:41:54 2002
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:56 EST