From owner-freebsd-questions@FreeBSD.ORG Wed Feb 13 18:53:05 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 17D4E9CA for ; Wed, 13 Feb 2013 18:53:05 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from ozzie.tundraware.com (ozzie.tundraware.com [75.145.138.73]) by mx1.freebsd.org (Postfix) with ESMTP id D4ECB946 for ; Wed, 13 Feb 2013 18:53:04 +0000 (UTC) Received: from [10.219.130.158] ([66.175.245.1]) (authenticated bits=0) by ozzie.tundraware.com (8.14.6/8.14.6) with ESMTP id r1DIqqV5063272 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 13 Feb 2013 12:52:52 -0600 (CST) (envelope-from tundra@tundraware.com) Message-ID: <511BE12C.204@tundraware.com> Date: Wed, 13 Feb 2013 12:53:32 -0600 From: Tim Daneliuk Organization: TundraWare Inc. User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: FreeBSD Mailing List Subject: Re: Fun Scripting Problem References: <511BDB13.3060005@tundraware.com> <13CA24D6AB415D428143D44749F57D7201EA7EBB@ltcfiswmsgmb21> In-Reply-To: <13CA24D6AB415D428143D44749F57D7201EA7EBB@ltcfiswmsgmb21> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (ozzie.tundraware.com [75.145.138.73]); Wed, 13 Feb 2013 12:52:53 -0600 (CST) X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: r1DIqqV5063272 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-From: tundra@tundraware.com X-Spam-Status: No X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: tundra@tundraware.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 18:53:05 -0000 On 02/13/2013 12:38 PM, Teske, Devin wrote: > (apologies for top-post) > > As tempted as I am, I think newsyslog(8) may be what you want. > > Missing information in your post is how you intend to timestamp the files -- by filename? by content? If by-content, then is it a good assumption that the data is one entry per-line? ... and if-so, is the timestamp in that line? These are all questions that would be needed to script what you're asking for (not that I'm volunteering or anything like that). > The only way to determine the date of the file is by looking at its stat info. There is nothing the file name or content that could be used to infer this. -- ----------------------------------------------------------------------- Tim Daneliuk