1 Apr
2004
1 Apr
'04
09:21
torsdag 01 april 2004 10:17 skrev handy:
Hi I am a novice in Linux. I want to do something in my sles with create a script for my database...my question is :
1. How to create a filename with date month year : For example : my filename -> backup30012004 2. If I want compress with gzip, can I create the filename with date month year directly . For example : gzip -9 backup30012004 If it is can be... how to make it
it's simple, my_filename=backup`date +"%d%m%Y"` in a shell script, and $filename will hold the name you selected above.