will result in errors like this:
-bash: /bin/mv: Argument list too long
-bash: /bin/cp: Argument list too long
-bash: /bin/rm: Argument list too long
-bash: /bin/ls: Argument list too long
To workaround the problem you can use xargs or find, or a combination of the two.
Using the "ls" command, you could do this to move all the files from source into target:ls -1 ./*.dat | xargs -i mv {} /home/user/targe/or this, using xargs instead of the -exec flag:
Using find to do the same move from source to target, you could do this:
find . -name "*.txt" -maxdepth 1 -exec mv {} /home/user/targe/ \;
find . -name "*.txt" | xargs -i mv {} /home/user/targe/Reference: http://www.electrictoolbox.com/argument-list-too-long-linux/