Hands-on task
This task is step 9 of the course “sed: the stream editor”
sed: insert a line after a match
In /root/in.txt, after each line containing [server], insert a new line enabled=yes. Write the result to /root/out.txt.
Reference:sed
What you'll practise:
- sed
- append command
- pattern address
- escaping