I guess I didn't guess what you were after, after all.
Glad I could help, even a little bit.
Ron
On Mon, 18 Jun 2001, Thomas M. Albright wrote:
> I got '-type f' from the man page. '-type f' limits the find to only
> actual files, not symlinks or directories. wc -l was just piped onto the
> end to get the count of how many files were found.
>
> find `echo $PATH | sed 's/:/ /g'` -perm +1
>
> does the same thing (as far as I can tel) as
>
> find `echo $PATH | sed 's/:/ /g'` -perm +1 -print
>
> But the +111 part helps. Thanks!
>
> On Mon, 18 Jun 2001, Ron Lawrence wrote:
>
> >
> > You might like man find better.
> >
> > find `echo $PATH | sed 's/:/ /g'` -perm +111 -print
> >
> > finds and prints executable files in the path.
> >
> > find `echo $PATH | sed 's/:/ /g'` -perm +111 -type f | wc -l
> >
> > does something rather different. I'm pretty sure the -type f and wc -l
> > aren't going to do what you want, assuming I've guessed what you really
> > want ;-)
> >
> > Have fun,
> > Ron Lawrence
> > (standard universal disclaimer, etc. ...)
> >
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************