Hands-on task
This task is step 6 of the course “sed: the stream editor”
sed: delete lines by pattern
In /root/in.txt, delete all lines containing the word DELETE. Save the remaining lines in their original order to /root/out.txt.
What you'll practise:
- sed
- deleting lines
- regular expressions
- pattern address