From: Matthew Seaman <[EMAIL PROTECTED]>
To: Jack Stone <[EMAIL PROTECTED]>
CC: freebsd-questions@freebsd.org
Subject: Re: Setting date variable
Date: Sat, 02 Sep 2006 20:28:39 +0100
Jack Stone wrote:
> I could use the "date" command to do: 2006-09.txt or maybe 200
Jack Stone wrote:
> I could use the "date" command to do: 2006-09.txt or maybe 2006-Sep.txt
> but I haven't found a simple way to set a variable make date spell out
> the whole name of the month to match the file name.
date +"%Y-%B.txt"
See strftime(3) for all of the %-escapes you can use.
Without setting multiple (crude) variables, I haven't come up with a good &
simple way to set the date variable in my "csh" shell script to grab a file
when the month rolls over.
Like this:
The file I want to copy into another script is in this format that I cannot
change:
"2006-September.t