Re: Linux Command Question
Ok,
Phew braincell is smoking now:
Here goes
Open the file to edit in vi
To replace Do this ...
pattern1 with pattern2 :s/pattern1/pattern2 on the same line
every occurrence of pattern1 :g/pattern1/s//pattern2/g with pattern2
You may run into trouble with the characters in the text you're trying to change I'm not sure. I would make a copy of a file first and practice on that.
I'll see if I can dredge up a better way to so rather than file by file as well.
Cheers
__________________
Wizbones PC
http://www.wizbonespc.com
--------------------------------------------------------
The Maximum Effective Range of an Excuse is Zero point Zero Meters!
|