[KLUG Members] script getting date variable
Buist Justin
members@kalamazoolinux.org
Wed, 21 Aug 2002 14:12:30 -0400
#!/bin/sh
foo=`/bin/date +"%d%m%Y"`
echo $foo
That should do it.
Justin Buist
> -----Original Message-----
> From: bill [mailto:bill@billtron.com]
> Sent: Wednesday, August 21, 2002 2:03 PM
> To: members@kalamazoolinux.org
> Subject: [KLUG Members] script getting date variable
>
>
> I want to have a shell script create a file whose name
> includes the date.
>
> The script currently does everything but get the date. I
> could grab the output
> of the date command, but that looks wonky. How can I get a
> DDMMYYYY or
> something similar?
>
> kind regards,
>
> bill hollett
>
> _______________________________________________
> Members mailing list
> Members@kalamazoolinux.org
>
>