Question

My team uses CVS. For some reason I need to create a shell script which deletes all folders with the name CVS(those who have worked on it might understand) present in my local copy. Consider the super directory as ABC. ABC has different directories in it , which in turn contain directories named CVS.

Était-ce utile?

La solution

little change on previous answer:

find /path/to/ABC -type d -name "CVS" -exec rm -fdr {} \;

Autres conseils

Try this:

find /path/to/ABC -type d -name "CVS" -delete
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top