How to Swap 30 & 40 in IP address 192.30.40.1 using TCL
script?
Answer Posted / ram
set a 192.30.40.1
set a [split $a .]
set b [lreplace $a 1 2 "40" "30"]
puts [join $b .]
Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers