Re: [SLE] Help me please
From: qrn_Hansen?= (orn.hansen_at_swipnet.se)
Date: 04/01/04
- Previous message: Pagan: "[SLE] cdrecord failures"
- In reply to: handy: "[SLE] Help me please"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: suse-linux-e@suse.com Date: Thu, 1 Apr 2004 11:21:43 +0200
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.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
- Previous message: Pagan: "[SLE] cdrecord failures"
- In reply to: handy: "[SLE] Help me please"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|