Urivan Saaib wrote:
> Unless what John is trying to do is sort the files from older to newest, I
> don't see "-exec " to be an option. If sorting the files is not a
> requirement then -exec should be the way to go.
>
> I guess the only way to fix the output for 'ls' is to pipe 'find' results
> to 'sed' and escape all the shell special characters, but that'll depend on
> the shell isn't? :)
>
Did you miss the solution previously offered by David?
find /home/ftp -mtime +238 -name \*.mpg -print0 | xargs -0 ls -lt
Unless the hit-list exceeds some moderately big number (thousands, I
think), all files will be sorted as requested because there will be only
one invocation of ls, as desired.
I think the "-exec command {} +" solution should work, as well:
find /home/ftp -mtime +238 -name \*.mpg -exec ls -lt {} +
<thread tail snipped, including the previous solutions restated above>
Regards,
..jim
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list