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 (220.127.116.11) jjggy
command I am trying:
echo "ytmti (18.104.22.168) jjggy" | sed 's:\((\(22.214.171.124\))\):\2:'
ytmti 126.96.36.199 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