Re: find -exec oddity

2003-07-08 Thread Ken Dibble
Brian Dessent wrote: Ken Dibble wrote: As you can see, there are indeed some directories, but a whole bunch of files which shouldn't be there as well. The big question now is why are some files considered directories? I don't see the confusion here. You're feeding to "ls -l" the parame

Re: find -exec oddity

2003-07-08 Thread Brian Dessent
Ken Dibble wrote: > As you can see, there are indeed some directories, but a whole bunch of > files > which shouldn't be there as well. > > The big question now is why are some files considered directories? I don't see the confusion here. You're feeding to "ls -l" the parameters "./" , "./files

Re: find -exec oddity

2003-07-08 Thread Ken Dibble
Randall R Schulz wrote: Ken, At 16:38 2003-07-07, Ken Dibble wrote: Ok, I'm an idiot. I've looked in the FAQ, searched the mail lists and checked sundry Unix sources (no, not the source code). Well, I doubt greatly that you're an idiot. Confusion is the prelude to enlightenment, after all.

Re: find -exec oddity

2003-07-07 Thread Brian Dessent
Ken Dibble wrote: > I can't make sense of this. > > $ find ./ -mtime -1 -print | wc -l > 55 > > $ find ./ -mtime -1 -exec ls -l '{}' \; | wc -l > 2046 Try running "find . -mtime -1" (-print is assumed) and look at the output. In addition to files, find returns directories that match th

Re: find -exec oddity

2003-07-07 Thread Randall R Schulz
Ken, At 16:38 2003-07-07, Ken Dibble wrote: Ok, I'm an idiot. I've looked in the FAQ, searched the mail lists and checked sundry Unix sources (no, not the source code). Well, I doubt greatly that you're an idiot. Confusion is the prelude to enlightenment, after all... (Compare that with Eudora