From owner-freebsd-questions@FreeBSD.ORG Sat Sep 2 19:29:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 174C316A4DE for ; Sat, 2 Sep 2006 19:29:11 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACE2E43D4C for ; Sat, 2 Sep 2006 19:29:09 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.8/8.13.8) with ESMTP id k82JSjk9040872; Sat, 2 Sep 2006 20:28:45 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=softfail; spf=softfail X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk k82JSjk9040872 Message-ID: <44F9DB67.6050506@infracaninophile.co.uk> Date: Sat, 02 Sep 2006 20:28:39 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.5 (X11/20060801) MIME-Version: 1.0 To: Jack Stone References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig83EDBA01BA713AB307DD6E93" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (smtp.infracaninophile.co.uk [IPv6:::1]); Sat, 02 Sep 2006 20:29:05 +0100 (BST) X-Virus-Scanned: ClamAV 0.88.4/1786/Sat Sep 2 10:01:59 2006 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_POLICY_TESTING, NO_RELAYS autolearn=ham version=3.1.4 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Setting date variable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Sep 2006 19:29:11 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig83EDBA01BA713AB307DD6E93 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable 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 --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig83EDBA01BA713AB307DD6E93 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE+dtt8Mjk52CukIwRCFihAJ0UTN2vr0xkDmGXjY4uyACXGACYewCfUYt7 VdPRSP2H39ZMEAshzoS8Tsg= =1UWe -----END PGP SIGNATURE----- --------------enig83EDBA01BA713AB307DD6E93--