IOS (tm) 2500 Software (C2500-INS-L), Version 12.0(14a), RELEASE SOFTWARE (fc1)
if var = "IOS (tm) 2500 Software (C2500-INS-L), Version 12.0(14a), RELEASE SOFTWARE (fc1)"
What is the best way to isolate only 12.0(14a) ?
The shell way would be sumtin line
echo "$var" | sed 's/.*ersion //g s/\, REL.*//g'
Whats the perl equiv for pipe ?
if var = "IOS (tm) 2500 Software (C2500-INS-L), Version 12.0(14a), RELEASE SOFTWARE (fc1)"
What is the best way to isolate only 12.0(14a) ?
The shell way would be sumtin line
echo "$var" | sed 's/.*ersion //g s/\, REL.*//g'
Whats the perl equiv for pipe ?