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