That command is pretty useless when typed at the console. I'm hoping
it'll work better here. :)

I'm trying to find all the executables in my PATH. I've tried:
   find `echo $PATH | sed 's/:/ /g'` -perm +1 -type f

which *should* find all the files with the execuatble bit set. Or so I
thought, since 1 is the octal of --x. It doesn't quite work tho. As
shown in the reults below, the numbe of executable files is different
depending on the code I use:
   find `echo $PATH | sed 's/:/ /g'` -perm +7 -type f | wc -l
      2135
   find `echo $PATH | sed 's/:/ /g'` -perm +5 -type f | wc -l
      2135
   find `echo $PATH | sed 's/:/ /g'` -perm +3 -type f | wc -l
      2133
   find `echo $PATH | sed 's/:/ /g'` -perm +1 -type f | wc -l
      2133

My 
PATH=/home/tom/adabas/bin:/home/tom/adabas/pgm:/home/tom/adabas/bin:/home/tom/adabas/pgm:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/tom/bin:/sbin:/usr/bin/X11:/usr/local/sbin:/usr/sbin

Two files missing from +3 and +1 are:
   /usr/sbin/kappfinder
   /usr/sbin/makewhatis

ls -l of those 2 files gives me:
   $ ls -l /usr/sbin/kappfinder /usr/sbin/makewhatis
   -rw-r--r--    1 root     root        31284 Nov 29  2000 /usr/sbin/kappfinder
   -rwxr-xr--    1 root     root        11446 May 13 14:09 /usr/sbin/makewhatis

kappfinder isn't even executable!!! ARGH!

Can anyone here help me out?

-- 
Thomas M. Albright
Albright Enterprises - "The Small Business Solution"
http://www.albrightent.com/


**********************************************************
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
**********************************************************

Reply via email to