Mail Archives: cygwin/2002/12/14/00:52:23
Hi,
What problem are you getting? I tried the your example on my system with and without the -ok arg ommitted:
[root AT webdev]:{512}:% find . -type d -maxdepth 1
.
./elfyn-tests
./src
[root AT webdev]:{510}:% find . -type d -maxdepth 1 -ok ls -al {} \;
< ls ... . > ? yes
total 5897
drwxrwxrwx+ 4 root root 16384 Dec 12 03:23 .
drwxr-xr-x+ 21 root root 4096 Dec 10 08:27 ..
-rwxrwxrwx+ 1 root root 346642 Aug 3 19:38 atk-1.0.3.tar.gz
drwxrwxrwx+ 2 root root 0 Dec 8 09:07 elfyn-tests
-rw-rw-rw- 1 root root 99 Dec 8 15:11 postgre.log
drwxrwxrwx+ 4 root root 4096 Dec 8 09:07 src
-rwxrwxrwx+ 1 admins none 5665384 Dec 11 23:41 webmin-1.030.tar.gz
< ls ... ./elfyn-tests > ? yes
total 20
drwxrwxrwx+ 2 root root 0 Dec 8 09:07 .
drwxrwxrwx+ 4 root root 16384 Dec 12 03:23 ..
-rw-rw-rw- 1 root root 689 Dec 3 00:42 setfacl.c
< ls ... ./src > ? yes
total 54432
drwxrwxrwx+ 4 root root 4096 Dec 8 09:07 .
drwxrwxrwx+ 4 root root 16384 Dec 12 03:23 ..
drwxrwxrwx+ 7 root root 0 Dec 6 16:22 cygipc-1.13
-rwxrwxrwx+ 1 root root 79657 Dec 6 16:18 cygipc-1.13-2-src.tar.bz2
...
-rwxrwxrwx+ 1 root root 172780 Dec 6 04:11 viewcvs-0.9.2.zip
This looks fine to me, as I would expect. Do you not get the output you expect?
Elfyn
elfyn AT exposure DOT org DOT uk
--- "Javier" <fjpp AT softhome DOT net> wrote:
>Hi!!
>
>I am trying to use the -ok or the -exec actions of "find", but I am
>running into an odd error:
>
>I want to list the dirs on a given dir, and then to do a "bk edit" on
>them.
>
>So, first I get the dirs listed (to see if I have the parms to find
>well):
>
>public_html> find . -type d -maxdepth 1
>
>--
>Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting: http://cygwin.com/bugs.html
>Documentation: http://cygwin.com/docs.html
>FAQ: http://cygwin.com/faq/
_____________________________________________________________
www.smokeJet.com - Free UK Internet Services
_____________________________________________________________
Select your own custom email address for FREE! Get you AT yourchoice DOT com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -