Date: Sat, 28 Jun 2008 09:40:06 GMT From: Kris Kennaway <kris@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/125057: xargs needs an option to use only newlines to delimit args Message-ID: <200806280940.m5S9e6VU070151@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/125057; it has been noted by GNATS. From: Kris Kennaway <kris@FreeBSD.org> To: Dave Yost <Dave@Yost.com> Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/125057: xargs needs an option to use only newlines to delimit args Date: Sat, 28 Jun 2008 11:39:02 +0200 Dave Yost wrote: > It is very common nowadays to have lots of filenames with spaces in them. > The current solution to this is cumbersome: > > find . - type f | tr '\012' '\000' | xargs -0 ls -ltr That is not the correct solution :-) find . -type f -print0 | xargs -0 ls -ltr The xargs manpage even mentions that -0 is the counterpart of find -print0. Kris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806280940.m5S9e6VU070151>