Processing text in bash
I need to process the text output from the below command: snmpwalk -v2c -c
community 192.168.122.15 .1.3.6.1.4.1.14823.2.2.1.4.1.2.1.39
The Original output is:
SNMPv2-SMI::enterprises.14823.2.2.1.4.1.2.1.39.252.200.151.233.54.69.197.39.5.77
= STRING: "Android"
I need the output to look like 197.39.5.77="Android" 197.39.5.77 is the
last four octets before the = sign
Many thanks for your help in advance
No comments:
Post a Comment