find <directory> <pattern> | xargs rm
This would be faster if really many files have to be processed.
Zlatko Krastev
IT Consultant
Please respond to "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>
Sent by: "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>
To: ADSM-L AT VM.MARIST DOT EDU
cc:
Subject: Antwort: AIX Question!
Hello Basam,
try
find <directory> -name "program*" -exec rm {} \;
Regards,
Alex.
--------------------------------------------------------------------------------
-----
Dipl.-Inform.
Dipl.-Inform.
Alexander Hasel
Geschäftsbereichsleiter
Data Management Solutions
BTB - Betriebswirtschaftliche und -technische Beratungsgesellschaft mbH
Wilhelm-Haas-Straße 6
D-70771 Leinfelden-Echterdingen (Oberaichen)
Tel. +49 (0) 711 - 97 53 - 1 25
Fax +49 (0) 711 - 97 53 - 2 80
eMail: hasel AT btbnet DOT de
WWW: http://www.btbnet.de
"Al'shaebani, Bassam" <Bassam.Al'shaebani AT MSNYUHEALTH DOT ORG>
Gesendet von: "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>
10.07.2002 14:26
Bitte antworten an "ADSM: Dist Stor Manager"
An: ADSM-L AT VM.MARIST DOT EDU
Kopie:
Thema: AIX Question!
Hello All,
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*.
There were too many files, so I had to actually cut my search down, to
something like program01* and so forth, to avoid the error message.
Thanks......
Regards,
Bassam
|