View Single Post
  #1 (permalink)  
Old 10-21-2006, 10:45 AM
Nightracer's Avatar   
Nightracer Nightracer is offline
Programmer
 
Join Date: Jun 2006
Posts: 131
Credits: 0
Rep Power: 10
Nightracer is on a distinguished road
Default Replacing with Shell Script and VI

How can I use a shell script and VI to replace entire strings in a file?

I know the VI code:
Code:
:%s/search/replace/g
I have words with forward slashes in them though which doesn't work.

Example: Replace http:// with ftp://

doesn't work. Anyone know how to make it work?
Reply With Quote

Sponsored Links