Actually, there's no need for the '-exec ls' here, since you can use '-
print' to achieve the same results, and with fewer things that can go
wrong.  The 'print' field will act like 'ls'.  There is even an '-ls'
flag you use, which acts like 'ls -l'.  Check the manual pages just to
be sure your version has these enabled.

Also, I recommend a nice intro to 'find' here:

http://danielmiessler.com/study/find/

Adding the '-type f' is a good idea nevertheless, but with the 'ls'
part, there's much easier ways to do it.

Best of luck.

On Aug 26, 12:27 pm, Joey <[email protected]> wrote:
> it turned out that "ls" was expanding "./."
>
> so the solution is
>
> find / -false -user root -type f -exec ls -l {} \;
>
> use -type to limit the output offered to "ls" contains only the
> regular files.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
-~----------~----~----~----~------~----~------~--~---

Reply via email to