I've been struggling with this issue for quite some time, I'm a beginner in using tools like grep/sed/awk/cut, as well as a beginner in regular expressions. I need to parse out a Cisco ASA Firewall log so that "columns" that contain an IP address are trimmed where only the IP address is left in its place. Please see the following example.
This:
Built inbound ICMP connection for faddr [hostname_here]-[ip address]/[port] gaddr [ip address]/[port] laddr [ip address]/[port]
Needs to be parsed out to this:
Built inbound ICMP connection for faddr [ip address] gaddr [ip address] laddr [ip address]
Honestly I don't think it's worth it to post what I've done so far because I'm sure I'm approaching this the wrong way.
I really appreciate your help.