From owner-freebsd-current@FreeBSD.ORG Mon Apr 14 00:42:05 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0586D37B401 for ; Mon, 14 Apr 2003 00:42:05 -0700 (PDT) Received: from mail.dada.it (mail3.dada.it [195.110.100.3]) by mx1.FreeBSD.org (Postfix) with SMTP id C7F8543FB1 for ; Mon, 14 Apr 2003 00:42:02 -0700 (PDT) (envelope-from riccardo@torrini.org) Received: (qmail 7174 invoked from network); 14 Apr 2003 07:41:59 -0000 Received: from unknown (HELO torrini.org) (195.110.114.101) by mail.dada.it with SMTP; 14 Apr 2003 07:41:59 -0000 Received: from trudy.torrini.home (localhost.torrini.home [127.0.0.1]) by torrini.org (8.12.9/8.12.9) with ESMTP id h3E7ftpQ004541; Mon, 14 Apr 2003 09:41:55 +0200 (CEST) (envelope-from riccardo@trudy.torrini.home) Received: (from riccardo@localhost) by trudy.torrini.home (8.12.9/8.12.9/Submit) id h3E7fsrN004540; Mon, 14 Apr 2003 09:41:54 +0200 (CEST) Date: Mon, 14 Apr 2003 09:41:54 +0200 From: Riccardo Torrini To: Jan Schlesner Message-ID: <20030414074154.GG3965@trudy.torrini.home> References: <200304091025.LAA13913@sorley.cogsci.ed.ac.uk> <20030409123257.GA3598@trudy.torrini.home> <20030413122948.GA42211@physik.TU-Berlin.DE> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030413122948.GA42211@physik.TU-Berlin.DE> User-Agent: Mutt/1.4.1i cc: freebsd-current@FreeBSD.ORG Subject: Re: Unix epoch changed? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2003 07:42:05 -0000 On Sun, Apr 13, 2003 at 02:29:48PM +0200, Jan Schlesner wrote: >> Ok, I remember wrong. But the question remain: why find -mtime -2 >> show a file from 1906 (near 100 year ago) instead of 2 days old? > Try to use "-mtime 2" instead of "-mtime -2". ;-) > ^ ^^ It's not the same: positive_2 match file that are exactly 2 day old but where negative_2 match file old from 0 upto 2 day. I need the second :-( And is documented, not a my invention... # man find [...] Any number of units may be combined in one -atime argument, for example, ``-atime -1h30m''. Units are probably only useful when used in conjunction with the + or - modifier. [...] # find /usr/ports/distfiles -mtime 20 -exec ls -land {} \; | \ sed 's/^..........[ 0-9]* //' Mar 25 11:10 /usr/ports/distfiles/gnome2 Mar 25 11:10 /usr/ports/distfiles/gnome2/docs Mar 25 11:08 /usr/ports/distfiles/xc Mar 25 11:10 /usr/ports/distfiles/KDE # find /usr/ports/distfiles -mtime -20 -exec ls -land {} \; | \ sed 's/^..........[ 0-9]* //' Apr 4 14:40 /usr/ports/distfiles Mar 25 11:10 /usr/ports/distfiles/gnome2 Mar 25 11:10 /usr/ports/distfiles/gnome2/docs Apr 7 14:30 /usr/ports/distfiles/bdb Apr 4 14:31 /usr/ports/distfiles/vim Mar 25 11:08 /usr/ports/distfiles/xc Dec 21 1909 /usr/ports/distfiles/xc/X336src-2.tgz Dec 21 1909 /usr/ports/distfiles/xc/X336src-1.tgz Mar 25 11:10 /usr/ports/distfiles/KDE Dec 12 1909 /usr/ports/distfiles/mirrormagic-1.3.tar.gz # find /usr/ports/distfiles -mtime 21 -exec ls -land {} \; | \ sed 's/^..........[ 0-9]* //' [...empty list...] # find /usr/ports/distfiles -mtime -21 -exec ls -land {} \; | \ sed 's/^..........[ 0-9]* //' Apr 4 14:40 /usr/ports/distfiles Mar 25 11:10 /usr/ports/distfiles/gnome2 Mar 25 11:10 /usr/ports/distfiles/gnome2/docs Apr 7 14:30 /usr/ports/distfiles/bdb Apr 4 14:31 /usr/ports/distfiles/vim Mar 25 11:08 /usr/ports/distfiles/xc Dec 21 1909 /usr/ports/distfiles/xc/X336src-2.tgz Dec 21 1909 /usr/ports/distfiles/xc/X336src-1.tgz Mar 25 11:10 /usr/ports/distfiles/KDE Dec 12 1909 /usr/ports/distfiles/mirrormagic-1.3.tar.gz -- Riccardo.