Either rm the whole directory or (like Frank said) iterate through them:<br><br>for file in `ls`; do rm -f "$file"; done<br><br>This has been a discussion on here before and there are faster ways to do this. They escape me right now. The problem is that there is a limit to how many arguments you can give on the command line.<br>
<br><div class="gmail_quote">On Mon, Jun 23, 2008 at 2:22 PM, Franklin Kumro Jr <<a href="mailto:fkumro@gmail.com">fkumro@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Iterate over the dir listing and rm each file<br>
<br>
Should work!<br>
<br>
-Frank<br>
<div><div></div><div class="Wj3C7c"><br>
On Mon, Jun 23, 2008 at 10:42 AM, Robert Wolfe <<a href="mailto:robertwolfe@localnet.com">robertwolfe@localnet.com</a>> wrote:<br>
> Hi all!<br>
><br>
> I have a BUNCH of files I need to clean out of a directory, but when I execute 'rm *' I get an "Argument list too long" error message. Is there a way around this? I get the same when mv'ing or cp'ing to /dev/null as well.<br>
><br>
> --<br>
> Robert Wolfe <<a href="mailto:robertwolfe@localnet.com">robertwolfe@localnet.com</a>><br>
><br>
> "The only good thing about Vista is that even<br>
> the viruses have compatibility issues. "<br>
> _______________________________________________<br>
> nflug mailing list<br>
> <a href="mailto:nflug@nflug.org">nflug@nflug.org</a><br>
> <a href="http://www.nflug.org/mailman/listinfo/nflug" target="_blank">http://www.nflug.org/mailman/listinfo/nflug</a><br>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Frank<br>
Shenanigans!!<br>
I do the voodoo that I do do with sudo!<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
nflug mailing list<br>
<a href="mailto:nflug@nflug.org">nflug@nflug.org</a><br>
<a href="http://www.nflug.org/mailman/listinfo/nflug" target="_blank">http://www.nflug.org/mailman/listinfo/nflug</a><br>
</div></div></blockquote></div><br>