LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-25-2006, 05:14 PM   #1
Marshalle
Member
 
Registered: Mar 2005
Location: Auckland, New Zealand
Distribution: OpenSuSE, SLE, Yoper, Sabayon
Posts: 69

Rep: Reputation: 15
How to make Simple Script to remove all files ending in mxm


Hi guys, does anyone here know how to make a simple script to remove all files in a large directory (with subdirectories) ending in .mxm? I have tried using the find command with the -exec option and a few other options with rm $(etc etc), any ideas?

Thanks!

Q
 
Old 12-25-2006, 05:35 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,139

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Quick search found this very similar query.
 
Old 12-25-2006, 08:38 PM   #3
Marshalle
Member
 
Registered: Mar 2005
Location: Auckland, New Zealand
Distribution: OpenSuSE, SLE, Yoper, Sabayon
Posts: 69

Original Poster
Rep: Reputation: 15
Wow thanks! That solved it, I guess I'll search here instead of Google next time!

Thanks again,

Q
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make a simple script and make it run on bootup?? coolblue Programming 5 12-18-2006 09:55 PM
Make a script remove lines from a file? spiffytech Linux - Software 5 12-29-2005 11:50 AM
I need to make simple script. sly_guy69 Linux - Newbie 4 01-22-2005 08:23 PM
How to make a simple addition in a shell script. philipina Programming 2 03-16-2004 04:38 AM
Script to remove old files. cmfarley19 Linux - General 2 03-24-2003 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration