date +%Y%m%d
        HTH!
                -=Ron=-

-----Original Message-----
From: Lang Zhi [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 19, 2000 4:57 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [expert] A simple script


Hi.
I need to backup some files every day. So, we use cron right ?
The file format is like this : abc.20000519.
So the next day, the new backup file will be named abc.20000520 and so on.

The problem here is, how do i get the "20000520", "20000521" and ... ?
This is actually the current date. I try to use the "date" , then "cut" and 
"tr" it, but it doesn't work.

So, any idea guyz ?
Any other command that can be use ?

Thanks
-lz
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

Reply via email to