Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jun 2005 09:33:55 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Francisco Reyes <lists@natserv.com>
Cc:        Jerry McAllister <jerrymc@clunix.cl.msu.edu>, FreeBSD Questions List <questions@freebsd.org>
Subject:   Re: Looking for files older than n number of days?
Message-ID:  <20050606143355.GL255@dan.emsphone.com>
In-Reply-To: <20050606102610.X86876@zoraida.natserv.net>
References:  <20050606095343.D86876@zoraida.natserv.net> <200506061401.j56E1gJ4019888@clunix.cl.msu.edu> <20050606141635.GK255@dan.emsphone.com> <20050606102610.X86876@zoraida.natserv.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050606143355.GL255>