Nah, xargs is one of those UNIX utilities that is buried in my "UNIX Power Tools" book that I don't know exists until somebody suggests that it will do what I'm looking for.
Kinda like uniq, That was the another program I discovered in the book, and now I don't know how I ever lived without it. On Mon, 2002-05-20 at 11:02, Gordon Messmer wrote: > 'ls -l *' will fail with the same error as 'rm -f *'. Just use: > > ls | xargs rm -f > > Isn't xargs covered in RHCE training and evaluation? :) > > > On Mon, 2002-05-20 at 07:02, Henning, Brian wrote: > > you could try > > > > ls -l * | xargs /bin/rm -f > > > > -----Original Message----- > > From: Jeff Bearer [mailto:[EMAIL PROTECTED]] > > Sent: Monday, May 20, 2002 8:55 AM > > To: [EMAIL PROTECTED] > > Subject: bash: /bin/rm: Argument list too long > > > > > > What is an easy way to delete 9000 files in a directory when rm -f * > > fails saying the argument list is too long? I'd prefer not to have to > > do it a little bit at a time like: > > > > rm -f a*; rm -f b*; etc. > > > > > > > _______________________________________________ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2002 EPpy Award, Best Online U.S. Newspaper _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list