[NTLUG:Discuss] Using current date in a script

Minh Duong minh_duong at yahoo.com
Wed Feb 5 23:07:52 CST 2003


Does anybody know how to use the current date when
writing a shell script?  What I am trying to do is
capture some information and save it as a file with
the filename as the date.  For example:

cat file >> 20030205.txt

The problem is I don't know how I can pass the date in
that form as text without resorting to using something
like java.

Minh

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the Discuss mailing list