Find the files:
find /home -name *.bmp -type f | less
Once you've checked that you _really_ want to get rid of all the files found, delete
them:
find /home -name *.bmp -type f -exec rm "{}" \;
Alternatively, move them somewhere for a while, just in case:
find /home -name *.bmp -type f -exec mv "{}" /tmp/ \;
Not fully tested, use at your own risk.
- Rog
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Simon Bryan
> Sent: Wednesday, 22 September 2004 9:13 AM
> To: [EMAIL PROTECTED]
> Subject: [SLUG] How to remove files en masse
>
> Hi all,
> We have run out of space in our user directory file. All
> users have been warned to delete or convert the thousands of
> bmp files to soemthing else or they will be deleted. So now I
> want to carry out my threat. I can list them all with
>
> ls -alR |grep bmp
>
> but how do I feed something like that to 'rm'
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html