Date: Sat, 02 Sep 2006 18:08:32 -0500 From: "Jack Stone" <antennex@hotmail.com> To: freebsd-questions@freebsd.org Subject: Re: Setting date variable Message-ID: <BAY106-F30519EF27B20FE6BBAAB15CC3D0@phx.gbl> In-Reply-To: <44F9DB67.6050506@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
>From: Matthew Seaman <m.seaman@infracaninophile.co.uk> >To: Jack Stone <antennex@hotmail.com> >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 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. > > Cheers, > > Matthew Thanks, Matthew. I knew it would be some simple way! striftime is now my friend! Happy Trails, Jack _________________________________________________________________ Windows Live Spaces is here! It’s easy to create your own personal Web site. http://spaces.live.com/signup.aspx
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY106-F30519EF27B20FE6BBAAB15CC3D0>