get the current date and use it in a filename

Posted by Malfist on Stack Overflow See other posts from Stack Overflow or by Malfist
Published on 2010-05-11T20:25:48Z Indexed on 2010/05/11 20:34 UTC
Read the original article Hit count: 204

Filed under:
|

I'm trying to do something like this:

mysqldump --user c1bt3 --password=blah c1bt3 > c1bt{date}.sql

where date is replaced with the current date, i.e. c1bt5-11-10.sql, and I'm trying to do it from a linux shell script.

Any ideas how I can do this?

© Stack Overflow or respective owner

Related posts about linux

Related posts about shell