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