1) Open the file using vi editor:
vi myfile.txt
2) Use keystrokes of Esc, followed by
:1,$s/old/new/
or:%s/old/new/
which will replace all "old" with "new" within the entire document.
This is not a blog, but my notes and tips for research. Feel free to take any information and leave any comments or questions.
1 comment:
Post a Comment