On 13.09.2013 10:24, Jean-Christophe Bach wrote:
[ ... ]

This one should work:

find /home/joseph/ -iname "*.pdf" -exec ls -l --sort=time {} +

-exec is not suitable here because it spawns a `ls` process per each found entry; aside from being slow, this disallows sorting at all.
You'd prefer
find /home/joseph/ -iname "*.pdf" |xargs ls -l --sort=time

or, to be space-proof
find /home/joseph/ -iname "*.pdf" -print0 |xargs -0 ls -l --sort=time

A little late but HTH.
--
Best wishes,
Yuri K. Shatroff

Reply via email to