Hi
Is there an easy way to perform substring operations in TCL
For eg if I have a file with something like
# Ingore this
#ignore
a1:a2:a3
b1:b2:b3
And
1. I want to ignore the lines with #
2. I want to pick each value between the ':' for each line and assign them to different variables
i.e. set var1 = a1
set var2 = a2
set var3 = a3
....etc
within a loop for every line
Is this possible
Is there an easy way to perform substring operations in TCL
For eg if I have a file with something like
# Ingore this
#ignore
a1:a2:a3
b1:b2:b3
And
1. I want to ignore the lines with #
2. I want to pick each value between the ':' for each line and assign them to different variables
i.e. set var1 = a1
set var2 = a2
set var3 = a3
....etc
within a loop for every line
Is this possible