Re: [CentOS] -bash: /bin/mv: Argument list too long

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, 2006-06-15 at 22:41 +0800, Mark Quitoriano wrote:
> what's a workaround for this?
> 
> -bash: /bin/mv: Argument list too long

More info? Well, presuming you want to move a whole (sub-directory) of
stuff, the quick and painless way is a find piped to cpio. You'll need
to review a cpio or find man page, but something like this might be
useful

   find [abc]* -depth | cpio -pdumav </your/target/directory>

The "-depth" is optional, but has uses. The cpio "a" resets the access
time (a problem if your source is read only, drop it) and the "v" says
be noisy about your job.

HTH

> <snip>

-- 
Bill

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux