long string using find and "-exec ls -ls" to find part-of filename
Victor Sudakov
vas at mpeks.tomsk.su
Tue Jul 1 04:37:22 UTC 2014
Polytropon wrote:
> Allow me to add one little reminder:
>
> When using xargs, usually _one_ program will be executed
> with a command line containing _all_ results of the find
> command. If you want to run a program on _each_ of the
> results, this is the typical sh solution:
>
> find ... | while read F; do
> somecommand $F
> done
It's easier to use "xargs -n1" which I do all the time.
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
sip:sudakov at sibptus.tomsk.ru
More information about the freebsd-questions
mailing list