Hands-on task
This task is step 6 of the course “Regular expressions”
Find lines with IPs
The log /root/log.txt has lines with and without IPv4 addresses. Output only the lines containing an IP address into /root/ips.txt.
What you'll practise:
- grep
- regular expressions
- ipv4
- line filtering
- escaping