Outside this process I built a file containing snmp response filtering for hostname, model type and ios version.
I want to get a count across the network of those devices running 11.x code, 12.0 mainline, 12.0 T train and above, 12.1 and above and OS levels.
This works ok .. but its cheap
How can use case ? the obvious didnt work. I guess I dont know how to anchor the regex.
grep " 11\.[0-9]" seedfile$hf > 11_$hf
grep " 12\.0" seedfile$hf | grep "]$" > 12_0_$hf
grep " 12\.0" seedfile$hf | grep -v "]$" > 12_1_$hf
grep " 12\.[1-9]" seedfile$hf >> 12_1_$hf
grep " [1-9]\.[1-9]\{1,\}" seedfile$hf > 7_$hf