Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.
Moderator: General Moderators
alex.barylski
DevNet Evangelist
Posts: 6267 Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg
Post
by alex.barylski » Thu Feb 14, 2008 4:42 pm
Basically I am trying to remove the files and directories created by subversion...I suppose I could import/export but this seems easier. Is the above right?
Christopher
Site Administrator
Posts: 13596 Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US
Post
by Christopher » Thu Feb 14, 2008 4:49 pm
No, you need to use find .
(#10850)
Benjamin
Site Administrator
Posts: 6935 Joined: Sun May 19, 2002 10:24 pm
Post
by Benjamin » Tue Feb 19, 2008 7:35 pm
Just for reference:
Code: Select all
rm -rf `find . -type d -name .svn`
timvw
DevNet Master
Posts: 4897 Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium
Post
by timvw » Wed Feb 20, 2008 1:38 am
actually you could also let find perform the rm... if i'm not mistaken arguments would be something like:
find xxxx -exec rm {} \;
Jenk
DevNet Master
Posts: 3587 Joined: Mon Sep 19, 2005 6:24 am
Location: London
Post
by Jenk » Wed Feb 20, 2008 6:33 am
The above (timvw's suggestion) is what I use when needing to achieve this.