ADSM-L

Re: AIX Question!

2002-07-10 09:07:55
Subject: Re: AIX Question!
From: Dirk Kastens <Dirk.Kastens AT UNI-OSNABRUECK DOT DE>
Date: Wed, 10 Jul 2002 15:02:41 +0200
Hi,

> I'm came across an issue yesteday, does anyone know a way around
> deleting a large number of files without getting the 'parameter too
> long'
> message. i.e. I was trying to delete all the file that began with
> program*.

What about

find ./ -xdev -type f -name "program*" -exec rm {} \;

or

for file in `echo program*`; do rm $file; done

Dirk
<Prev in Thread] Current Thread [Next in Thread>