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

Re: Argument List too Long



Look in the man pages for Xargs, there are quite a few examples in there on
how to move and delete file when the 'Argument list is too long'

On Mon, May 31, 2010 at 2:26 PM, Sanjay Chakraborty <sanjaychakrab gmail com
> wrote:

> I have a script and that run every month, In the script it has a mv
> command and that moves about 35000 files from one directory to other
> directory. In one system it is working but in other system I am
> getting "Argument List too Long" error message.
>
> mv* ../$directory2/ cannot work.
>
>
> I can try with "find $directory -type f -name '*' -exec mv {}
> $directory2/. \;"  but I am not sure it will work and it will take
> time to do the testing through script modification.
>
>  It is running RHEL 5.1, patching may solve the problem. But I cannot
> patch this server soon.
>
> Any one can help about this ?
>
> --
> Regards.
> Sanjay Chakraborty
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request redhat com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



-- 
-------------------------------------------------------------------------------------------------------------------------------------
NOTICE: This message, including all attachments, is intended for the use of
the individual or entity to which it is addressed and may contain
information that is privileged, confidential and exempt from disclosure
under applicable law. If the reader of this message is not the intended
recipient, or the employee or agent responsible for delivering this message
to its intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please notify the sender
immediately by replying "Received in error" and immediately delete this
message and all its attachments.
-------------------------------------------------------------------------------------------------------------------------------------


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