I have written one TCL script but I have one problem when making a string variable as below:
set a 100 set b \"this is variable[$a]\"
I want b
You just need to escape it:
set a 100 set b "this is variable\[$a\]"