LinuxQuestions.org
Help answer threads with 0 replies.
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 11-04-2005, 02:23 AM   #1
scratchnz
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
remove all files with same extension?


Hi all,
can anyone tell me how to rm all files in my directory structure with the .lck extension? Easy enough in the current directory... rm -f *.lck but i have lots of subdirectories I want them removed from too.
I'd have thought the recursive flag rm -rf *.lck would have done it?
Does it matter that they are hidden files? (eg: .index.html.lck

Thanks
Scratch
 
Old 11-04-2005, 03:40 AM   #2
ashamril
Member
 
Registered: Jan 2003
Location: cyberjaya
Distribution: rh mdk deb fed suse
Posts: 99

Rep: Reputation: 15
$ find . -name *.lck -exec file {} \; -exec rm -i {} \;
 
  


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
files with extension rar ankscorek Linux - Software 5 07-25-2005 09:41 PM
Extension files BC1 Linux - Software 5 12-20-2004 03:41 AM
What to do about these files with .new extension? Slovak Slackware 1 11-23-2004 04:50 PM
How program to read files with extension .dat y .cfg files COMTRADE in fedora 1? ivonne Linux - Software 0 11-22-2004 11:42 AM
How to remove a php zend extension docbrazen Linux - Software 0 01-19-2004 02:17 PM

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

All times are GMT -5. The time now is 12:57 PM.

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