{Anu Anudeep Anukumar Amar Amaravathi Aruna}
is their any possibility to find the letter "a"in the given list? if yes how?
Answers were Sorted based on User's Feedback
Answer / jincy
puts "searching variable a"
set list_4 [list Anu Anudeep Anukumar Amar Amaravathi Aruna]
foreach item $list_4 {
set elem [split $item ""]
foreach var $elem {
if {$var == "a"} {
puts $item
}
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
set str {Anu Anudeep Anukumar Amar Amaravathi Aruna}
foreach i $str {
if {[regexp {(A)} $i match ] } {
puts $match
}
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / tcl_beginner
set str {Anu Anudeep Anukumar Amar Amaravathi Aruna}
set charstr a
puts [string first $charstr $str]
| Is This Answer Correct ? | 1 Yes | 9 No |
How do you find the length of a string without using string length command in TCL??
{Anu Anudeep Anukumar Amar Amaravathi Aruna} is their any possibility to find the letter "a"in the given list? if yes how?
How to Swap 30 & 40 in IP address 192.30.40.1 using TCL script?
Test case on windows calculator?
What does Tcl stand for?
Write a proc to increment the ip by the given no. of times. The incremented IPs should be a valid one. Ex: proc <name> {ip no_of_incrments} { body }
How TCL works
Where can find the sample tcl programs?
Problems with utf-8 between Mac and PC
write a program to the given ip is valid private address or not(192.168.1.1)?
How increment a character? For example, I give 'a' and I should get 'b'.
How to run a package in tcl