How to replace String "a" with String "b" in whole file of
the vi editor?

Answer Posted / nikhil vasishta

try this.
current path= /a/b/c/ -- new path= /e/f/

:%s/a\/b\/c\//e\/f\//g
where g = global (wherever the current path comes it will
change it to new path).

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the command used to append to buffer?

2072


HOW WE CAN MAKE THE DLIEVERY WHICH IS BLOCKED DUE TO CREDIT LIMIT.

2367