/bin/cp: Argument list too long

Steve Stavropoulos steve at math.upatras.gr
Thu Oct 31 01:39:05 EET 2002


On Wed, 30 Oct 2002, Giorgos Keramidas wrote:

> On 2002-10-29 10:25, Steve Stavropoulos <steve at math.upatras.gr> wrote:
> >  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).

 xargs -i%

       --replace[=replace-str], -i[replace-str]
              Replace occurences of replace-str  in  the  initial
              arguments  with  names  read  from  standard input.
              Also, unquoted blanks do not  terminate  arguments.
              If  replace-str  is  omitted,  it  defaults to "{}"
              (like for `find -exec').  Implies -x and -l 1.

 Na milhsw twra gia thn anwterwthta twn GNU tools, h na to afhsw gia
argotera? ;-)




More information about the Linux-greek-users mailing list