Extending find(1) to support -printf

Jonathan McKeown jonathan+freebsd-hackers at hst.org.za
Fri Sep 5 16:42:03 UTC 2008


On Friday 05 September 2008 16:39, Jeremy Chadwick wrote:

> Equally as frustrating, mutt's backtick support will only honour the
> first line of input.  If a backticked command returns multiple lines,
> only the first is read; the rest are ignored.  This makes using BSD find
> annoying, since find always outputs results terminated with a newline.
> One of my peers uses find | perl -ne 'chomp; print "=", $_, " "' to deal
> with this limit, which is quite disgusting.

It is, especially when you consider find ... | xargs (or find ... -print0 | 
xargs -0 if your filenames might cause problems (embedded spaces etc)).

Jonathan


More information about the freebsd-hackers mailing list