From owner-freebsd-questions@FreeBSD.ORG Mon Sep 12 19:42:52 2005 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 C15FD16A41F for ; Mon, 12 Sep 2005 19:42:52 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from smtp1.utdallas.edu (smtp1.utdallas.edu [129.110.10.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85C2B43D48 for ; Mon, 12 Sep 2005 19:42:52 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) by smtp1.utdallas.edu (Postfix) with ESMTP id 1A74F388E39 for ; Mon, 12 Sep 2005 14:42:52 -0500 (CDT) Date: Mon, 12 Sep 2005 14:42:52 -0500 From: Paul Schmehl To: freebsd-questions@freebsd.org Message-ID: <66253B97387DDE83CEB81DF1@utd59514.utdallas.edu> In-Reply-To: <4325CAE2.3020906@emendis.de> References: <01A14A33D6971135F96609A2@utd59514.utdallas.edu> <4325CAE2.3020906@emendis.de> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: Shell scripting question 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: Mon, 12 Sep 2005 19:42:52 -0000 --On Monday, September 12, 2005 20:37:22 +0200 Frank Mueller - emendis GmbH wrote: > To get the date in the right format you could simply use > > date +%H > That solves one-half of the problem. I would still have to get the hour from the file into the correct format. Otherwise I'll simply move the error message to a different variable. Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu/ir/security/