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" <[EMAIL PROTECTED]> Sent by: "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: Subject: Antwort: AIX Question! Hello Basam, try find <directory> -name "program*" -exec rm {} \; Regards, Alex. -------------------------------------------------------------------------------- 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: [EMAIL PROTECTED] WWW: http://www.btbnet.de "Al'shaebani, Bassam" <Bassam.Al'[EMAIL PROTECTED]> Gesendet von: "ADSM: Dist Stor Manager" <[EMAIL PROTECTED]> 10.07.2002 14:26 Bitte antworten an "ADSM: Dist Stor Manager" An: [EMAIL PROTECTED] 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