From owner-freebsd-questions@FreeBSD.ORG Wed Oct 29 09:58:57 2003 Return-Path: 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 B8A9616A4CF for ; Wed, 29 Oct 2003 09:58:57 -0800 (PST) Received: from mail.cult.cu (ns2.cubarte.org [169.158.120.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADD4F43F75 for ; Wed, 29 Oct 2003 09:58:55 -0800 (PST) (envelope-from admin@atenas.cult.cu) Received: from mailnull by mail.cult.cu with local-bsmtp (Exim 4.10) id 1AEuZI-000KJQ-00 for questions@freebsd.org; Wed, 29 Oct 2003 12:57:16 -0500 Received: from [169.158.120.178] (helo=mail.atenas.cult.cu) by mail.cult.cu with esmtp (Exim 4.10) id 1AEuZB-000KJE-00 for questions@freebsd.org; Wed, 29 Oct 2003 12:57:09 -0500 Received: from [192.168.1.8] (helo=bloodlust) by mail.atenas.cult.cu with smtp (Exim 3.34 #1) id 1AEuWw-00010G-00 for questions@FreeBSD.ORG; Wed, 29 Oct 2003 12:54:50 -0500 Message-ID: <002801c39e46$49a3d980$0801a8c0@bloodlust> From: "Xpression" To: "FreeBSD-questions" Date: Wed, 29 Oct 2003 12:58:21 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Subject: Problem with date... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2003 17:58:57 -0000 Hi all, I'm logging certain types of files to a daily grouping with the following format `date +%v` and the output format for today is eg. 29-Oct-2003, it's fine but this happens at 12:00 pm at night to rotate everyday, and I want to check and edit some lines on the file that was recorded but date is the actual and date +%v return me the date of today and not of yesterday, is there a way to recognize the past file ???