Hands-on task
This task is step 1 of the course “sed: the stream editor”
sed: replace the first occurrence
In /root/in.txt, on each line replace only the first occurrence of the word cat with bird. Write the result to /root/out.txt.
What you'll practise:
- sed
- substitution
- line-by-line processing
- output redirection