begin  quoting David Brown as of Fri, Jul 25, 2008 at 11:32:57AM -0700:
> On Fri, Jul 25, 2008 at 11:31:10AM -0700, John Oliver wrote:
> 
> >find /home/ftp -mtime +238 -name \*.mpg | xargs ls -lt
> 
> If you're using the GNU versions, it's easiest to just use null
> termination.
> 
>   find /home/ftp -mtime +238 -name \*.mpg -print0 | xargs -0 ls -lt
> 

The *easiest* way is to use -exec.

Complaints about performance of -exec should be ignored, as in that
case one should use + instead of \; to terminate the -exec option.

Oh, wait, Linux isn't POSIX compliant with this.

For performance, resort to using a pipe and remembering to use nulls
as separators.

-- 
Hopefully GNU find has fixed this by now, and I just haven't updated recently.
Stewart Stremler


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to