Sometimes need to filter input to show just lines containing IP address. It is very simple again.
Here is a command to do it from CLI on one shot:
grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" input-file.txt
Sometimes need to filter input to show just lines containing IP address. It is very simple again.
Here is a command to do it from CLI on one shot:
grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" input-file.txt