This question already has an answer here:
I am just starting out using
sed and I intend to use it to extract IP addresses from
ping output. Here's what I am trying to achieve exactly:
ytmti (184.108.40.206) jjggy
command I am trying:
echo "ytmti (220.127.116.11) jjggy" | sed 's:\((\(18.104.22.168\))\):\2:'
ytmti 22.214.171.124 jjggy
jjggy are really stand-ins for text like
Pinging unix.stackexchange.com and
with 32 bytes of data:.
I think using
awk might be a better solution for parsing
but I would like to get accustomed to