cp: Argument list too long

Bill Jonas plug-discuss@lists.plug.phoenix.az.us
Wed, 11 Dec 2002 09:25:57 -0700


--vJwpkiw3F9XLBeML
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Dec 09, 2002 at 10:53:20PM -0700, Michael Wittman wrote:
> Then run the command:
> find /mydir/myfiles -name \*.pdf -print0 | xargs -0 -n 2500 -s 10000 cp-f=
iles
=2E..
> Normally you don't need to create a separate script to use with xargs, but
> cp (and mv) have the peculiar property that the last argument is special.

No need to in this case, either:

find /mydir/myfiles -name \*.pdf -print0 | xargs -0 -i cp "{}" /newdir

--=20
Bill Jonas    *    bill@billjonas.com    *    http://www.billjonas.com/

SysAdmin/Developer/Tech for hire!  http://www.billjonas.com/resume.html

--vJwpkiw3F9XLBeML
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE992cUdmHcUxFvDL0RAkUZAJoDNifxYEGor1YMPBX3wjRzP3OVjQCfRT0o
maR8KFKA+MN2H6AU1yr8O1E=
=Nq+s
-----END PGP SIGNATURE-----

--vJwpkiw3F9XLBeML--