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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-24-2009
scottn scottn is online now Forum Advisor  
VIP Member
  
 

Join Date: Jun 2009
Location: Zürich, CH
Posts: 1,071
\ has special meaning so you must escape it...

Code:
:%s/\\([\\begin{work}]\\)/ /g
But the example you posted is not exactly the greatest...

In the search you used \( ..... \)

And in the substitution you said / /

Which would ultimately replace everything with a space! So why not just say "s/.*/ /"