[BusyBox] Find doesn't have "-exec", xargs doesn't have "-i"

responder responder at dynacolor.com.tw
Thu Oct 21 01:42:49 UTC 2004


Larry,

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. :(

Good day.

Sincerely yours,
      responder

> Niklas -
> 
> >   for i in `find / -follow -name filename.xxx`; do cp $i /tmp; done
> 
> Has problems when directory names include " " (space).
> Long lists might use excessive memory in the shell.
> Assuming they both work, the "find blah | while read"
> construct is considered better.
> 
>         - Larry
> 
> ______________________________________________________________________
> _______________________________________________
> busybox mailing list
> busybox at mail.busybox.net
> http://busybox.net/mailman/listinfo/busybox




More information about the busybox mailing list