Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I delete all directoris named "CVS" using a script?

Status
Not open for further replies.

koeicjm

Programmer
Sep 12, 2001
73
JP
how can I delete all directoris named "CVS" using a script?
 
at the command line type :-
find / -type d -name "CSV" -print -exec rm -rf {} \;

This will remove ALL directories (and their contents)with the name "CSV" (thats uppercase)
Its a good ideas to test the result first (without the -exec rm -rf {} \; )
Or you can put the statement in a script and run the script,perhaps from the cron.
HTH
;-) Dickie Bird
db@dickiebird.freeserve.co.uk
 
Hi,
CVS is a Change Version Control system. it is used to store multiple versions of the same file so you can track updates and changes to files that have occured over time.

if you have a lot of CVS directories I would check with your developers and make sure deleting them won't lose any valuable information.

----
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top