Re: Argument List too Long

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'd replace it with a little bash scripting

for a in $ ; do mv "$a" ../$directory2/ ; done



On 5/29/2010 6:33 PM, Sanjay Chakraborty 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 ?
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwBmBMACgkQdBNH6NIpz0XNVwCfSFF9uv8CWy66CeDQg56Y3P2I
5ZIAmwZ2rVnjkCaiCFDLOsYHVDNvQCak
=IZ43
-----END PGP SIGNATURE-----

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux