Using bash I need to print some txt file which actually is another python script consisted of some tittles moved into the variable (t) within the main script
t="test"
printf "import pymol
cmd.load("${t}.pdb")" > ./script.py
the problem that the resulting script.py looks exactly like what I've defined in my main script
import pymol
cmd.load("${t}.pdb")"
so how I can to past correctly value of 't' within the resulted script.py?
import pymol
cmd.load("test.pdb")"