The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 12-10-2004
zazzybob's Avatar
zazzybob zazzybob is offline
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Quote:
Originally posted by Lomic
if I understand what you mean, I should do like this:
Code:
:%s/^.*blabla\ \'toto\'\ rep\:\/titi\/toto\///
Am I right? (if it is the case, it si ok because my pattern never change)
Looking at that, all you really need to do is
Code:
:%s/^.*blabla 'toto' rep:\/titi\/toto\///
i.e. it's only the slashes that need to be escaped.

Cheers
ZB
Reply With Quote