I am having a issue where i am trying to substitute a variable in sed command while executing it in TCL shell. Below is what i tried.
set variable 5
exec sed "s/test1\$/test1;test1 $variable/g" file1 > file2
I see below error. Error: sed: -e expression #1, char 75: unknown option to `s' Use error_info for more info. (CMD-013)
I have tried some links on stack overflow but that did not help. Using a Variable in a sed command called in Tcl Script