ray beckler on Tue, 1 Jun 1999 17:41:07 -0400 (EDT)


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

Re: Too many args for rm *.in


tburba@GLCORPIS01.usvision.com wrote:

> rm *.in fails with the error "too many arguments" (there is 15000 files).
> How do I use it with more arguments? (xargs man page makes no sense at all)
> TIA

If there's nothing in the directory you want to keep, just go up one level and
do rm -rf <dirname>.

BE CAREFUL!  "rm -rf"  will remove everything in the directory you name and
below it, no questions asked.  So just make sure you're in the right place
when you issue the command and don't use wildcards.  I did that once, "rm -rf
ray*", left out the space between ray and * --- nasty, very nasty.

Otherwise you can do a series of rm a*, rm b* or whatever.  I'm sure there's
other tricks but I don't remember.


ray



--
To unsubscribe, send a message with the word 'unsubscribe' in the subject
or body of your message to plug-request@lists.nothinbut.net