[question] datetime in shell script

How can I use current date and time in shell script???

I have an backup script that run every hour, it will output a file... how can I name that file with current datetime so it's won't overwrite existed files???

The output file should be: "filename[year][month][day][hour][min]

Thanks...

 

 

 

 

Top