I am trying to understand the :t in following code but could not figure out and these piece of code need to convert in tcl. When We print it split the word the on the slash and it return the last element. ex: user3,user,etc
suppose d = /home/etc/user/user3
while 1 {
set _f $_d:t
}
You’re probably looking for
file tail:It’s not normally good style to start a Tcl variable name with
_, but it’s quite legal to do so if you want to.