I would like to set a variable in bash called test_var
Basically, I want echo test_var to output:
%let output="file_20120601.csv";
where 20120601 is a variable. I am trying to do this by using:
test_var='%let output="file_$1.csv";'
echo test_var
this doesn’t work because $1 is not interpreted as variable, but interpreted as literally $1
Does anybody know how I can modify this to get it to do what I want it to do?
It doesn’t work because of single quotes. They make everything literal.