Argument list too long – xargs is the solution…

┬áIf you’re dealing with a lot of files and get messages like:

mv *.* tmp/
-bash: /bin/mv: Argument list too long

then you need xargs.

xargs is a command of the Unix and most Unix-like operating systems. It becomes useful when you want to pass a large amount of arguments to a command. In that case xargs will break the list of arguments in sublists large enough to be acceptable.

E.g. http://www.unixreview.com/documents/s=8274/sam0306g/

Leave a Reply

Your email address will not be published. Required fields are marked *