<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
thanks! it worked.<br><br>> Date: Wed, 14 May 2008 09:47:32 -0400<br>> To: tlug-lxSQFCZeNF4@public.gmane.org<br>> Subject: Re: [TLUG]: Command Line Maximum<br>> From: lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys@public.gmane.org<br>> <br>> On Wed, May 14, 2008 at 09:25:27AM -0400, Kevin Morris wrote:<br>> > I have a script that uses mv to move a set of files. Whenever there are a very large number of files it fails, the reason: command line limit of a shell. I think xargs will resolve this problem, my question is how do I find this limit and any pointers on how to use xargs with the mv command in a bash script.<br>> <br>> Different shells have different limits, and the OS you are running the<br>> shell on also affects the limit. I think most systems allow 32k<br>> characters, some more, some less. In general if you aren't sure how<br>> many files you are about to deal with, use xargs to batch them. To make<br>> spaces in filenames safe, use -print0 with find and -0 with xargs. And<br>> always remember the 'don't run if no arguments' option to xargs as well.<br>> <br>> -- <br>> Len Sorensen<br>> --<br>> The Toronto Linux Users Group. Meetings: http://gtalug.org/<br>> TLUG requests: Linux topics, No HTML, wrap text below 80 columns<br>> How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists<br><br /><hr /> <a href='' target='_new'></a></body>
</html>