Hi folks,
I have some doubts regarding editing a file in Linux.
The problem is that, if my file consists something as
Code:
cavestine is a good boy
cavestine is studying in MIT
cavestine likes Kernel programming
cavestine is an active member of cprogramming.com forum.
Now in this file I want to remove "cavestine" by "mark"
Then I can open the file and use the following command to do so.
Code:
:%s/cavestine/mark/g
But the issue is if there are more than 1 file in a directory and I want to replace "cavestine" by "mark" in all files WITHOUT using any script, is there any such command to do so. I DONT want to open individual file and edit as above.
is "sed" the right command to use
thanx in advance
-- cavestine