Run the find command to recursively delete a folder (svn) in linux. -name & quot ;*. svn & quot;-typed-print-execrm-rf {}\; (1) & quot ;. & quot; indicates recursive search from the current directory. (2)-name & quot; svn & quot; search by name. (3) & quot;-typed &
Run the find command to recursively delete a folder (svn) in linux. -name "*. svn "-type d-print-exec rm-rf {}\; (1 )". "indicates recursive search starting from the current directory. (2) "-name" svn "" is searched by name. (3) The "-type d" search type is Directory (4) "-print" output file directory name (5) the most important thing is-exec, -The exec option is followed by the command to be executed, indicating that the command is executed in the file or directory that is found. The exec option is followed by the command or script to be executed, followed by a pair of {}, a space, a \, and a semicolon. When the output is complete, a print of find:./folder1/svn: No such file or directory is displayed. This kind of reminder doesn't matter to him, at least we have achieved our goal. Author leehonpjp
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