Hands-on task
This task is step 1 of the course “Regular expressions”
Lines without a pattern
From /root/list.txt remove all lines containing the word DEBUG, and save the rest to /root/clean.txt.
Reference:grep
What you'll practise:
- grep
- inversion
- -v
- line filtering
- substring