Beacon Hill, Inc. Technology Solutions

Home > Knowledge Base > Bash > Finding CVS directories

Find Subdirectories With CVS

Sometimes you need to know which subdirectories have been setup with CVS. You don't need to know recursively all the directories, just the ones immediately below the current folder.

The following command does the trick.


find .  -maxdepth 2 -name CVS | cut -d"/" -f2 | grep -v CVS | sort