Hands-on task
This task is step 27 of the course “Regular expressions”
Repeated words
/root/prose.txt has spots where a word was accidentally duplicated in a row (the the). Find the lines with such repeats and write them to /root/dupes.txt.
What you'll practise:
- grep
- regex
- backreference
- groups