Created
December 17, 2012 12:48
-
-
Save robatwilliams/4318053 to your computer and use it in GitHub Desktop.
Get the username part of the SVN repository url. Doesn't echo anything unless there is one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# e.g from svn+ssh://[email protected] | |
svn info | grep URL: | cut -d / -f 3 | cut -d @ -s -f 1 | |
# output: username |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment