LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-22-2010, 10:46 AM   #1
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Rep: Reputation: 15
Question Delete folder recursively


Hey guys,

I have a copy of a SVN working copy and I don't have access to the original repository. What I want to do is to remove the .svn folder that SVN creates in each folder.

Since I don't want to go and delete it manually from each and every subfolder I was wondering if there is a way to do delete then all at once.

Thanks,
 
Old 03-22-2010, 10:50 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by Braynid View Post
Hey guys,

I have a copy of a SVN working copy and I don't have access to the original repository. What I want to do is to remove the .svn folder that SVN creates in each folder.

Since I don't want to go and delete it manually from each and every subfolder I was wondering if there is a way to do delete then all at once.

Thanks,
Code:
find / -type d -name '.svn' -exec rm -rf '{}' \;
Be careful with this command! If applied wrong it can damage your system!
[EDIT]
The above command will search all your filesystem hierarchy. Maybe it is better to search only a certain folder like
Code:
find /home/path/to/your/SVNFOLDERS -type d -name '.svn' -exec rm -rf '{}' \;
I am not familiar with SVN

Last edited by crts; 03-22-2010 at 10:57 AM.
 
1 members found this post helpful.
Old 03-22-2010, 11:07 AM   #3
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
I've tried the localized find and it worked just swell.
Thanks mate!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete files for a particular changed date recursively? qwertyme Linux - Newbie 5 01-23-2009 10:41 AM
How to search through all files in a folder, recursively... MJBoa Linux - Software 13 09-14-2008 11:25 PM
how to recursively delete *.xtension files from a directory structure kpachopoulos Linux - General 6 08-24-2008 08:53 AM
FTP need to transfer entire folder recursively rolster Linux - Newbie 6 02-02-2006 08:54 AM
How to delete the first line of evrer .java file recursively ththomas Programming 2 03-08-2004 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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