Tom created a text document using the vi editor and has shared the document with you. You
are expected to review the same, correct any errors and send it over to the client.
Your task: Backup the "/opt/Software/vi_ModifyContent_Ex1.txt" as "/vifile.txt" and Modify the
"/vifile.txt" according to the below requirement and save the file when done with modification.
- Replace "output" word as "printout".
- Convert the entire word "David Mackenzie" into Uppercase.
- Remove the word "leading". If there is multiple occurrence, remove all words.
Click the Evaluate button after completion.
Not
Dow!
GNU
LICE
Linux
Answers
Answered by
1
Answer:
jsaokkwkslakwjwndndheiw
Answered by
0
Linux
Vi editor is used in Linux operating system.
To enter Insert mode, press i . In Insert mode, you can enter text, use the Enter key to go to a new line, use the arrow keys to navigate text, and use vi as a free-form text editor.
Explanation:
To replace a word in Vi editor.
press y to replace the match or l to replace the match and quit.
The a option substitutes the match and all remaining occurrences of the match. To scroll the screen down, use CTRL+Y , and to scroll up, use CTRL+E
Visual select the text, then U for uppercase or u for lowercase. To swap all casing in a visual selection, press ~ (tilde).
Similar questions