Re: long string using find and "-exec ls -ls" to find part-of fi
in message <20140701003013.f068eb05.freebsd@edvax.de>,
wrote Polytropon thusly...
>
Sorry Polytropon, for I lost Gary's mail.
> On Mon, 30 Jun 2014 14:55:34 -0700, Gary Kline wrote:
> > how about whitespace? ls -lsi appears as two cmds, so would
> > it work as you have with backtics?
> >
> > find ... | xargs -n 1 `ls -lsi`
Do see find(1) manual page ...
-print0
This primary always evaluates to true. It prints
the pathname of the current file to standard
output, followed by an ASCII NUL character
(character code 0).
.... and xargs(1) one ...
-0 Change xargs to expect NUL (``\0'') characters as
separators, instead of spaces and newlines. This is
expected to be used in concert with the -print0
function in find(1).
.... to form ...
find ... -print0 | xargs -0 -n 1 ...
- parv
--
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 18 之 20 篇):