Unix Shell - [newbie]remove .svn directory

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > January 2008 > [newbie]remove .svn directory





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [newbie]remove .svn directory
Tony Winslow

2008-01-04, 1:27 pm

I want to remove .svn directories, and I found the solution below on the
internet:
find . -name .svn -exec rm -vrf {} \;
Can anyone explain to me what exactly does it mean? Thank you!
Ed Morton

2008-01-04, 1:27 pm



On 1/4/2008 8:05 AM, Tony Winslow wrote:
> I want to remove .svn directories, and I found the solution below on the
> internet:
> find . -name .svn -exec rm -vrf {} \;
> Can anyone explain to me what exactly does it mean? Thank you!


find .
= find from the current directory (.) down

-name .svn
= all files and directories named ".svn"

-exec
= and execute the following command:

rm -vrf
= which is the "rm" command using arguments "-vrf" (man rm)

{} \;
= giving that command each file/dir name as it's found.

Ed.

Cyrus Kriticos

2008-01-04, 1:27 pm

Tony Winslow wrote:
> I want to remove .svn directories, and I found the solution below on the
> internet:
> find . -name .svn -exec rm -vrf {} \;
> Can anyone explain to me what exactly does it mean? Thank you!


Or checkout your dirs and files without creating .svn dirs:

svn export URL

--
Best regards | Be nice to America or they'll bring democracy to
Cyrus | your country.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com