I want to add a variable ${date} in the following bash script:
ffmpeg -i in.flv -vf drawtext="fontfile=Sans.ttf:text='Today is ${date}':fontsize=6" out.flv
Obviously, ${date} won’t expand in single quote, please also note that there is a double quote beyond the single quote, which makes it even more complicated.
Thanks a lot. I am on CentOS 6.
${date}is expanded because it is between double quotes (the single quotes inside the double quotes are just characters)Test it with: