Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Find'ing Executables
@ 1996-09-05  4:00 Keith DeLong
  1996-09-06  4:00 ` Stephen Stuart
  0 siblings, 1 reply; 3+ messages in thread
From: Keith DeLong @ 1996-09-05  4:00 UTC (permalink / raw)




Can someone help me with the syntax for a "find" command, that will only
find executable programs.  I've wandered through the Man pages for find
many times, and I just cant seem to figure it out.  I want to find it if
it's executable by anyone (owner, group, world).

Thanks!

--Keith
-- 
----------------------------------------------------------------------------
Keith DeLong      (keith@alpha.delta.edu)      [http://www.delta.edu/~keith]
----------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Find'ing Executables
  1996-09-06  4:00 ` Stephen Stuart
@ 1996-09-06  4:00   ` Marc Roussel
  0 siblings, 0 replies; 3+ messages in thread
From: Marc Roussel @ 1996-09-06  4:00 UTC (permalink / raw)



Stephen Stuart wrote:
> This version will find anything with any execute bit set:
> 
> % find -perm -0111
> 
> This one restricts the search to only things of type file (excluding
> directories and symlinks):
> 
> % find -type f -perm 0111

I think Stephen meant -0111 in that last example.  (The "-" sign is
important.)

					Marc R. Roussel
					(roussel@henri.chem.uleth.ca)
					Department of Chemistry
					University of Lethbridge



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Find'ing Executables
  1996-09-05  4:00 Find'ing Executables Keith DeLong
@ 1996-09-06  4:00 ` Stephen Stuart
  1996-09-06  4:00   ` Marc Roussel
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Stuart @ 1996-09-06  4:00 UTC (permalink / raw)



Keith DeLong (keith@alpha.delta.edu) wrote:

: Can someone help me with the syntax for a "find" command, that will only
: find executable programs.  I've wandered through the Man pages for find
: many times, and I just cant seem to figure it out.  I want to find it if
: it's executable by anyone (owner, group, world).

This version will find anything with any execute bit set:

% find -perm -0111

This one restricts the search to only things of type file (excluding
directories and symlinks):

% find -type f -perm 0111

Stephen
--
Stephen Stuart				stuart@pa.dec.com
Network Systems Laboratory
Digital Equipment Corporation



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-09-06  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-05  4:00 Find'ing Executables Keith DeLong
1996-09-06  4:00 ` Stephen Stuart
1996-09-06  4:00   ` Marc Roussel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox