[NTLUG:Discuss] Using current date in a script

Lance Simmons lance at lsimmons.net
Wed Feb 5 23:17:05 CST 2003


On Wed, Feb 05, 2003 at 09:07:52PM -0800, Minh Duong wrote:

> cat file >> 20030205.txt

 cat file >> `date -I`.txt

will give you 2003-02-05.txt

 cat file >> `date +%Y%m%d`.txt

will give you 20030205.txt

 man date

will give you other information about date.

-- 
 .~.
 /V\   Lance Simmons
/( )\  lance at lsimmons.net
^^-^^



More information about the Discuss mailing list