From owner-freebsd-questions@FreeBSD.ORG Sat Sep 2 19:17:42 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 0384716A4DD for ; Sat, 2 Sep 2006 19:17:42 +0000 (UTC) (envelope-from antennex@hotmail.com) Received: from bay0-omc1-s37.bay0.hotmail.com (bay0-omc1-s37.bay0.hotmail.com [65.54.246.109]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2ED343D49 for ; Sat, 2 Sep 2006 19:17:41 +0000 (GMT) (envelope-from antennex@hotmail.com) Received: from hotmail.com ([65.54.161.22]) by bay0-omc1-s37.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 2 Sep 2006 12:17:42 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 2 Sep 2006 12:17:41 -0700 Message-ID: Received: from 65.54.161.200 by by106fd.bay106.hotmail.msn.com with HTTP; Sat, 02 Sep 2006 19:17:37 GMT X-Originating-IP: [65.68.247.73] X-Originating-Email: [antennex@hotmail.com] X-Sender: antennex@hotmail.com From: "Jack Stone" To: freebsd-questions@freebsd.org Date: Sat, 02 Sep 2006 14:17:37 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 02 Sep 2006 19:17:41.0180 (UTC) FILETIME=[75CB2FC0:01C6CEC4] Subject: 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:17:42 -0000 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.txt" . ..which will roll next month to "2006-October.txt", etc. 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. Any tips on this one? Best to all, Jack _________________________________________________________________ Call friends with PC-to-PC calling -- FREE http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline