Bash scripting using date
Here's the file so far:
Quote:
And here is the error: Quote:
I know I'm missing something, what is it? |
Hi,
There are spaces between myfilename and = and $(.......), they should not be there. I.e: myfilename="$(date +%m%d%y).tar.gz" I also removed the + bit and changed the quotes. Hope this helps. |
Thanks, that worked.
|
By the way, "+%m%d%y" is broken (unsortable and ambiguous), you should use "+%Y%m%d" or "+%F" instead.
|
All times are GMT -5. The time now is 11:03 AM. |