good point
i was trying to go from memory...
bad idea

-----Original Message-----
From: Gordon Messmer [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 10:03 AM
To: [EMAIL PROTECTED]
Subject: RE: bash: /bin/rm: Argument list too long


'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



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to