[BusyBox] Find doesn't have "-exec", xargs doesn't have "-i"
David Morel
david.morel at amakuru.net
Thu Oct 21 10:44:13 UTC 2004
Le jeu 21/10/2004 à 03:42, responder a écrit :
> I think we can use " to avoid the space problem.
> -> for i in `find / -follow -name filename.xxx`; do cp "$i" /tmp; done
> Use "$i" instead $i.
> It should work. :)
>
> But about long lists, it seems unavoidable for this command. :(
Correct me if i'm wrong, but the space problem happens in the loop, not
really in the cp command.
Moreover, I don't think opening a pipe would eat up as much memory as a
'for i in; do whatever; done construct'.
I vote for the pipe!
--
***********************************************
david.morel at amakuru.net
OpenPGP public key: http://www.amakuru.net/dmorel.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=
Url : http://lists.busybox.net/pipermail/busybox/attachments/20041021/bee2a1ea/attachment-0002.pgp
More information about the busybox
mailing list