The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: Replace in VI
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-26-2008
preethgideon preethgideon is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 71
Replace in VI

Hi All,
How to add a '*' at the begining of VI file between lines in a range say 20 -30??

Please help.

I tried :%s/20,30/^/\*/

Did not work.

Thanks and Regards,
Gideon.