/bin/cp: Argument list too long
Giorgos Keramidas
keramida at ceid.upatras.gr
Thu Oct 31 00:19:25 EET 2002
On 2002-10-29 10:25, Steve Stavropoulos <steve at math.upatras.gr> wrote:
> On Mon, 28 Oct 2002, Alexandros Papadopoulos wrote:
> > Twra ayto pou me apasxolei einai giati otan paw na antigrapsw enan
> > fakelo me ~12000 arxeia mesa, pairnw thn ekshs apanthsh:
> >
> > [alex at localhost ~/Mail2/.Linux.directory/Hellug/cur]$ cp * /home/alex/Mail/HELLUG/cur/
> > bash: /bin/cp: Argument list too long
>
> find ~/Mail2/.Linux.directory/Hellug/cur -exec cp {} kapou_allou/ \;
Hmmm, aporia. Sto FreeBSD to xargs pairnei ena option -J pou mporei
nna xrhsimopoih8ei gia na "metakinhsei" kapoios th 8esh twn xargs
arguments mesa sto command. Gia paradeigma:
# cd /var/spool/mqueue
# mkdir ../oldq
# find . -type f -name '[dq]f*' | xargs -J % mv % ../oldq
Opou to ../oldq tha einai panta to teleutaio argument sthn mv(1).
Kserei kaneis an paizei auto sthn xargs pou exoun ta pio gnosta Linux
distributions?
Giorgos.
More information about the Linux-greek-users
mailing list