Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

121
Views
How to remove all folders with a specific name recursively from all sub directories?

Here is a sample of some directory paths

find . -name .svn;

./application/views/scripts/soft/.svn
./application/views/scripts/sitemap/.svn
./application/views/scripts/register/.svn
./application/views/scripts/home/.svn
./application/views/scripts/terms-of-service/.svn
./application/views/scripts/promotions/.svn
./application/views/scripts/test/.svn
./application/views/scripts/privacy-policy/.svn
./application/views/scripts/services/.svn
./application/views/scripts/mobile/.svn
./application/test/.svn
./application/public/.svn

I want to remove all .svn folders from all this directories at once from the current root directory I'm in.

Any deas?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

You can do (added -type d to your find command to get folders only)

rm -rf `find . -type d -name .svn`

over 4 years ago · Santiago Trujillo Report

0

find . -name \*.svn -type f -delete
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!