Hands-on task
This task is step 10 of the course “Text in the terminal: grep, sed, awk”
Replace all occurrences
In /root/text.txt the word foo appears several times in a line. Replace all of its occurrences with qux and write the result to /root/out.txt.
What you'll practise:
- sed
- substitution
- g flag
- output redirection