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