“Argument list too long” from rm command. A Perl Script to Get Around the Problem
You’ve seen the problem – many Unix commands don’t like very long argument lists. For instance, my Linux machine complains when I try to “rm” 10,000 files at once:
[eddie@yoakam test]$ rm *
-bash: /bin/rm: Argument list too long
Here’s a simple script that will delete all of the files in a given directory, even if the argument [...]

