Vince Oliver wrote: > thanks for reply. trick works :) > > May I ask you for one more trick? How to remove ALL files from > directories EXCEPT '*.pro'?
$ find DHbox* -type f -not -name "*.pro" -exec rm -f {} \; Beware that find will recurse any directory below your DHbox*. Make sure that's what you want before typing this command. Omit the -exec part to have a look at the selected file list first. HTH Cheers. Bye. Ph. A. -- *Philippe Andersson* Unix System Administrator IBA Particle Therapy | Tel: +32-10-475.983 Fax: +32-10-487.707 eMail: [EMAIL PROTECTED] <http://www.iba-worldwide.com> The contents of this e-mail message and any attachments are intended solely for the recipient (s) named above. This communication is intended to be and to remain confidential and may be protected by intellectual property rights. Any use of the information contained herein (including but not limited to, total or partial reproduction, communication or distribution of any form) by persons other than the designated recipient(s) is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free. Ion Beam Applications does not accept liability for any such errors. Thank you for your cooperation.
signature.asc
Description: OpenPGP digital signature