Hands-on task
This task is step 8 of the course “Regular expressions”
Extract email addresses
/root/text.txt mixes text and email addresses. Pull out all emails into /root/emails.txt — one per line, just the address itself, without the surrounding text and punctuation.
What you'll practise:
- grep
- regular expressions
- -oE
- character classes