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