I got two lists,
pinlist {A B C ..}
numlist {2 3 5 ..}
now I am trying to list it as table i.e.
pin num
--- ----
A 2
B 3
C 5
..
why does foreach command doesn't work in following way?
set i 1
foreach x [list $pinlist] {
puts stdout [format "%-32s %s \n" [lindex $numlist...
I got a list,
frq 1 1 1 1 1 2 2 3 ...,
I need to to change the 3rd ELEMENT which is 1, to 5.
I know the "lreplace" command wouldn't work for this as it doen't take the index of the list.
Is there a command to do this job?
if not, the possibility might be deleting the 3rd element and appending...
I am very new to TCL programming. I have only managed to establish the file search code and the pattern matching.
If this is something straight forward - please help me on to build the whole program.
I have a huge directory of files with some test data. I need to write a program to search only text files (with ".txt") and list the information. The text files contains instances as "ADDR #nnnn", where nnnn is four hex digits. The program should list the hex number against the number of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.