I'm trying to write a bash script that would dump mysql database (script run by cron once a week). I need to name the dump file with a current date like twilk_20050326.sql. I come to a problem at the very beginning trying to create filename varible:
This one gives an error of command not found: +twilk_%G%m%d.sql
I also tried without a space before "+", with single quotes, double quotes around "date ... .sql". All of them assign value of a string, not executing command.
Thanks for any help