I can use this command  locate --regex '/.git$' | grep username to locate all git repositories on my system, but because the .svn appears in subdirectories of repositories the command locate --regex '/.svn$' | grep username work as well.The former produced about 120 and the latter over 14,000.What file or directory name should I search for to lcate subverson repositories?
How can I locate all subversion repositories on my system?
directory;subversion
In Git, every working copy is its own repository. This is not the case for SVN. So if you actually want to find repositories, and they are in the default location and on the local machine, this suffices:ls /var/svnAssuming you actually want to find working copies, SVN since version 1.7 only places .svn files at the top level of a working copy, so the commandfind / -type d -name '.svn'would work just fine.  Alternatively, if you've used earlier SVN and do have these directories littered throughout, you may try:find / -type d -name '.svn' -exec dirname {} \; \| sort \| awk 'NR == 1 || $0 !~ ^LAST { LAST = $0; print}'This lists all directories containing .svn subdirectories, then prints only those that do not contain another as a prefix.I've found a computer containing locate, where$ locate --versionmlocate 0.26Copyright (C) 2007 Red Hat, Inc. All rights reserved.This software is distributed under the GPL v.2.This program is provided with NO WARRANTY, to the extent permitted by law.On this system, an approach similar to the final find example:locate -r '/\.svn$' \| sed 's/^\(.*\)$/\1/' \| xargs dirname \| sort \| awk 'NR == 1 || $0 !~ ^LAST { LAST = $0; print }'