Hands-on task
This task is step 2 of the course “Regular expressions”
Strip blank lines
/root/sparse.txt contains blank lines. Remove all of them and write the result to /root/dense.txt.
What you'll practise:
- grep
- sed
- regular expressions
- anchors
- match inversion