SED
https://www.regextester.com/1946
Print the string between two parentheses
G8 = P(G1,G3) G9 = P(G3,G4)
- sed 's/.*(\(.*\))/\1/' file
while IFS="()" read a b; do echo "$b"; done < file
==
sed 's#ip access-list extended#acl advanced name#g' < NH-3ND-R6506E-D-1Cfg > v1 sed 's#permit ip#rule permit ip source#g' < v1 > v2 sed '/any$/s#any$#destination any#g' < v2 > v3
