I've completed an SNMP poll to get different licenses from my routers. I've successfully polled the information; I now want to be able to present it. A snapshot of the output I have is:
SNMPv2-SMI::enterprises.9.9.543.1.2.3.1.3.1.1.1 = STRING: "ipbasek9" SNMPv2-SMI::enterprises.9.9.543.1.2.3.1.3.1.1.2 = STRING: "securityk9" SNMPv2-SMI::enterprises.9.9.543.1.2.3.1.3.1.2.1 = STRING: "securityk9" SNMPv2-SMI::enterprises.9.9.543.1.2.3.1.3.1.2.2 = STRING: "uck9" I just want to show what is in inverted commas:
"ipbasek9""securityk9"- etc.
I have found the regex for it "(.*?)" which will highlight all data in the inverted commas, but what command will actually pull the data from the text? I've tried all sorts of variations of awk, sed, grep but still not having any luck.