Date: Tue, 06 Dec 2005 00:17:24 +0100 From: Lothar Braun <mail@lobraun.de> To: freebsd-questions@freebsd.org Subject: Re: cp/mv/etc : argument list too long ... I am sick of this Message-ID: <4394CA84.5040300@lobraun.de> In-Reply-To: <Pine.LNX.4.21.0512051747390.8684-100000@shell.dhp.com> References: <Pine.LNX.4.21.0512051747390.8684-100000@shell.dhp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
user wrote: > Ok, so I have some big directories with lots of files. If I do mv or cp, > it always refuses, telling me: > > cp: argument list too long > > so, no problem ... I get creative with things like this: > > for f in 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W > X Y Z ; do cp $f* /some/dir ; done You could use find for that task: find /directory/with/lots/of/files/ -exec cp {} /destination/directory/ \;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4394CA84.5040300>