On Sat, Jul 26, 2008 at 09:11:22AM -0700, SJS wrote:
begin  quoting David Brown as of Fri, Jul 25, 2008 at 11:32:57AM -0700:

>find /home/ftp -mtime +238 -name \*.mpg | xargs ls -lt

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

(SJS angers RMS) :-)  If anything is GNU and not Linux, it is the shell
utilities.

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

Of course for this particular example, and GNU find, it's probably even
easier to just print what you want in find.

  find /home/ftp +mtime +238 -name \*.mpg -ls

or

  find /home/ftp +mtime +238 -name \*.mpg -printf '%8k %p\n'

David


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

Reply via email to