Delete '. svn' directory on the linux

Source: Internet
Author: User

Delete '. svn 'Directory on the linux Linux Solution 1: find. -type d-name ". svn "| xargs rm-rf Linux Solution 2: find. -type d-iname ". svn "-exec rm-rf {}\; Windows Solution 1: for/r. % a in (.) do @ if exist "% \. svn "rd/s/q" % \. svn "Windows Solution 2 (Save to" DeleteSVN. bat "file ): [plain] @ echo off echo ********************************* ************************* echo clears SVN version information echo ***** **************************************** **************: Start: startup process, switch Directory: set pwd = % cd %: cd % 1 echo working directory: chr (38) chdir: input: Get input, process data according to input: set source =: set/p source = confirm to be clear under the current directory. svn information? [Y/N/Q] set "source = % source: "= %" if "% source %" = "y" goto clean if "% source %" = "Y" goto clean if "% source %" = "n "goto noclean if" % source % "=" N "goto noclean if" % source % "=" q "goto end if" % source % "=" Q" goto end goto input: clean: in the main processing process, execute cleanup @ echo on @ for/d/r % c in (. svn) do @ if exist % c (rd/s/q % c chr (38) echo Delete directory % c) @ echo off echo "svn information in the current directory has been cleared" goto end: noclean: branch process, cancel cleanup echo "svn clear operation canceled" goto end:: Exit program cd "% pwd %" pause

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.