Hands-on task
This task is step 7 of the course “sed: the stream editor”
sed: print only matching lines
From /root/in.txt, output to /root/errors.txt only the lines starting with error:.
What you'll practise:
- sed
- sed -n
- print command
- regular expressions
- anchors