I'm new in ubuntu.
I have this IP regex '\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|$)){4}\b'
I have a network pcap file, I want to use this regex and the grep -e to find all IP address in the file.
I tried: egrep '[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}' -f Ncapture.pcap
How can I use the grep command to find IP in a network pcap file?