Hands-on task
This task is step 10 of the course “sed: the stream editor”
Extract the block between markers
In the file /root/doc.txt there's a block bounded by the marker lines BEGIN and END. Extract all lines from BEGIN to END inclusive and write them to /root/block.txt (discard the rest).
What you'll practise:
- sed
- address ranges
- regular expressions
- block markers