Set ip address as 10.30.20.1 write a script to replace the 30 with 40?
Submitted by: Administratorhere you can do this in multiple ways
1.regsub 30 $data 40 a
puts $a
this will give you the replaced string
2.string replace $data 3 4 40
this also will give you the replaced value
Submitted by: Administrator
1.regsub 30 $data 40 a
puts $a
this will give you the replaced string
2.string replace $data 3 4 40
this also will give you the replaced value
Submitted by: Administrator
Read Online TCL (Tool Command Language) Job Interview Questions And Answers
Top TCL (Tool Command Language) Questions
☺ | How to check whether a string is palindrome or not using TCL script? |
☺ | What is TCL? |
☺ | Where can we find the sample tcl programs? |
☺ | How do you find the length of a string without using string length command in TCL? |
☺ | How increment a character? For example, I give a and I should get b? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |