Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jul 1998 12:33:55 -0400 (EDT)
From:      Thomas David Rivers <rivers@dignus.com>
To:        miker@scifair.acadiau.ca, questions@FreeBSD.ORG
Subject:   Re: copying many files at once
Message-ID:  <199807121633.MAA15124@lakes.dignus.com>
In-Reply-To: <Pine.BSF.3.96.980712124603.14079A-100000@scifair.acadiau.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Hi.
> This is a silly question, but in its sillyness I can't make it work!
> 
> [root@frodo www]# mv ../page* .
> bash: /bin/mv: Argument list too long
> 
> There are about 50,000 files that begin with 'page' and I want to move 'em
> all into the /var/spool/www directory from /var/spool
> 
> mv doesn't seem to like what the shell does to the '*' Any ideas?
> 
> -Mike
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

 Yes - you need to use 'xargs'. 

 See the xargs man page.

	- Dave Rivers -

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807121633.MAA15124>