Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-23-2004, 05:26 AM   #1
Registered: Mar 2004
Location: Melton Mowbray England
Distribution: Ubuntu
Posts: 37

Rep: Reputation: 15
remove save file, many directories

Anyone tell me a command or script to remove the same filename from many different directories in the same tree, and leave the rest untouched?

many thanks

Old 08-23-2004, 06:01 AM   #2
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,172

Rep: Reputation: 52
find . -type f -name filename.sav -exec rm {} \;


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching multiple directories and sub directories for a file jeep99899 Linux - Newbie 2 10-13-2005 01:23 PM
Remove directory and sub directories newuser455 Linux - Newbie 5 06-01-2005 01:31 AM
Backup system - which directories to save? geodo Linux - Newbie 2 05-28-2004 12:15 AM
how do I remove all empty directories? noisybastard Linux - General 2 08-11-2003 12:47 AM
How to remove directories? jameshao Linux - Newbie 2 09-13-2001 03:54 PM

All times are GMT -5. The time now is 07:14 PM.

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