Help answer threads with 0 replies.
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 05-28-2008, 10:59 PM   #1
LQ Newbie
Registered: May 2008
Posts: 20

Rep: Reputation: 0
Delete specific archive names in subdir

I wanted to know if you can delete files that have the name "index" in all sub directories in a folder?
Old 05-28-2008, 11:08 PM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Something along the lines of

find /start_dir/ -name '*index*' -type f -exec rm -f {} \;
Old 05-28-2008, 11:19 PM   #3
LQ Newbie
Registered: May 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Very Thanks, Perfect!


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
Delete/move/copy files of specific date imsajjadali Red Hat 26 11-08-2013 12:34 AM
Delete specific Range of lines Using sed , awk, grep etc. joyds219 Linux - Newbie 4 03-28-2008 09:59 AM
Keep specific file types, delete the rest ? jchambers Programming 5 11-26-2007 07:25 PM
ow do I delete all files which were created on a specific date marsguy Linux - General 9 08-21-2007 09:15 AM
How do I auto delete mails from a specific domains/users? markng Linux - Security 4 05-02-2002 11:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:25 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