On Thu, 2005-05-26 at 22:50 -0700, Evan Sayer wrote:
> Hello-
> Does anyone know how to get the ctime(3) format of the date in a script
> (i.e without actually writing a C program to return it).
> -Thanks.
#!/bin/sh
#get current date
DATE=`date "+%d%m%y"`
echo $DATE;
you can play with specs: %D
On Thu, May 26, 2005, Evan Sayer wrote:
>Hello-
>Does anyone know how to get the ctime(3) format of the date in a script
>(i.e without actually writing a C program to return it).
ctime=`perl -e 'printf qq(%d\n), time' `
Bill
--
INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC
Hello-
Does anyone know how to get the ctime(3) format of the date in a script
(i.e without actually writing a C program to return it).
-Thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions