From owner-freebsd-questions@FreeBSD.ORG Tue Mar 29 20:00:59 2005 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 1E4F216A4CE for ; Tue, 29 Mar 2005 20:00:59 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8502343D2F for ; Tue, 29 Mar 2005 20:00:58 +0000 (GMT) (envelope-from noeldude@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so627738wra for ; Tue, 29 Mar 2005 12:00:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=FC+H5QnOHk/9H0jtuahd9nzRxIEExNLfVx50CG0mcUIV3BzEF8JdGh2K4dwGsk7RvfezwxfbYtPXrNhXj7XSoXBSlbHZ7zzPrDJ0DMFEJSZ9kxQ431S5Rl6gKIAVZefcOC/CT2Nyke4/rXyPsJo/k4ZgnGHUpMPEZkUQUcfyAyI= Received: by 10.54.15.75 with SMTP id 75mr83908wro; Tue, 29 Mar 2005 12:00:57 -0800 (PST) Received: by 10.54.82.4 with HTTP; Tue, 29 Mar 2005 12:00:57 -0800 (PST) Message-ID: Date: Tue, 29 Mar 2005 14:00:57 -0600 From: Noel Jones To: freebsd-questions@freebsd.org In-Reply-To: <1776.209.87.176.4.1112122957.fusewebmail-19592@webmail.fusemail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <1776.209.87.176.4.1112122957.fusewebmail-19592@webmail.fusemail.com> Subject: Re: how to find files less than a day old? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Noel Jones List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2005 20:00:59 -0000 On Tue, 29 Mar 2005 13:02:37 -0600 (CST), Brian John wrote: > Hello, > I'm trying to write a script to concatenate a bunch of files. Basically I > want to grab a bunch of files out of a directory that are less than an > hour or so old and put them in one file. > > This is what I am using so far: > > find . -mtime -1 -type f | xargs cat > temp.txt > > However, this only grabs files that are less than a day old, so I get some > files returned that I don't want. I tried using -0.5 instead of -1 and it > didn't work. How can I accomplish this? > find . -mtime -1h -type f .... man find -- Noel Jones