From owner-freebsd-questions@FreeBSD.ORG Mon Jun 6 14:33:57 2005 Return-Path: X-Original-To: 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 0428216A41C for ; Mon, 6 Jun 2005 14:33:57 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id A763943D1F for ; Mon, 6 Jun 2005 14:33:56 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j56EXtlo000478; Mon, 6 Jun 2005 09:33:55 -0500 (CDT) (envelope-from dan) Date: Mon, 6 Jun 2005 09:33:55 -0500 From: Dan Nelson To: Francisco Reyes Message-ID: <20050606143355.GL255@dan.emsphone.com> References: <20050606095343.D86876@zoraida.natserv.net> <200506061401.j56E1gJ4019888@clunix.cl.msu.edu> <20050606141635.GK255@dan.emsphone.com> <20050606102610.X86876@zoraida.natserv.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050606102610.X86876@zoraida.natserv.net> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i Cc: Jerry McAllister , FreeBSD Questions List Subject: Re: Looking for files older than n number of days? 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, 06 Jun 2005 14:33:57 -0000 In the last episode (Jun 06), Francisco Reyes said: > On Mon, 6 Jun 2005, Dan Nelson wrote: > >OPERATORS > > The primaries may be combined using the following operators. > > The operators are listed in order of decreasing precedence. > >[...] > > expression -and expression > > expression expression > > The -and operator is the logical AND operator. As it is > > implied by the juxtaposition of two expressions it does not > > have to be specified. The expression evaluates to true if > > both expressions are true. The second expression is not > > evaluated if the first expression is false. > > Does that mean that "-ls" always evaluates to false? Nope; "find . -ls -ls" will print every filename twice. You might want to list every filename for logging purposes, then do some other processing (-delete maybe, or something called via -exec) on certain other conditions. More manpage pasting: -ls This primary always evaluates to true. The following information for the current file is written to standard output: its inode number, size in 512-byte blocks, file permissions, number of hard links, owner, group, size in bytes, last modification time, and pathname. -- Dan Nelson dnelson@allantgroup.com