Andrew Libby on Tue, 1 Jun 1999 19:51:05 -0400 (EDT) |
Don't forget about xargs: cd /dir/w/many/files ls | xargs rm xargs is good stuff. Andy On Tue, Jun 01, 1999 at 09:31:23PM +0000, ray beckler wrote: > 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 > -- To unsubscribe, send a message with the word 'unsubscribe' in the subject or body of your message to plug-request@lists.nothinbut.net
|
|