From owner-freebsd-questions Tue Sep 24 17:17:55 2002 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 6A09B37B401 for ; Tue, 24 Sep 2002 17:17:54 -0700 (PDT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 721CF43E7B for ; Tue, 24 Sep 2002 17:17:53 -0700 (PDT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.12.3/8.12.3) with ESMTP id g8P0FD91063475; Tue, 24 Sep 2002 21:15:14 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Tue, 24 Sep 2002 21:15:13 -0300 (ART) From: Fernando Gleiser To: Peter Leftwich Cc: FreeBSD LIST Subject: Re: how to find executable files In-Reply-To: <20020924191230.B66173-100000@earl-grey.cloud9.net> Message-ID: <20020924211240.O59093-100000@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-3.4 required=5.0 tests=IN_REP_TO version=2.31 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 24 Sep 2002, Peter Leftwich wrote: > Two questions, first is why doesn't this work, or is there a flag I can use > with "ls?" > > # find . -type f -perm +x > find: -perm: x: illegal mode string > # find . -type f -perm +x -print > find: -perm: x: illegal mode string You need to use the octal mode: # find . -type f -perm +100 for the files executable for their owner. man find for details. > > Question II: Is find always recursive (through subdirectories) or can this > be limited to x levels down? Thanks. man find. look for the maxdepth and mindepth flags. Fer > > -- > Peter Leftwich > President & Founder > Video2Video Services > Box 13692, La Jolla, CA, 92039 USA > +1-413-403-9555 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message