I can\'t seem to use a variable in a sed command, for example:
sed \"24s/.*/\"$ct_tname\"/\" file1.sas > file2.sas
I want $ct_tnam
$ct_tnam
Shell variables are not expanded inside single quotes. Try this instead:
sed "24s/.*/\"$ct_tname\"/" file1.sas > file2.sas