Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I can get it by parsing the output of svn info. Example using Bash:

svn info | grep '^URL: ' | cut -d' ' -f2

Is there an easier way?

share|improve this question

1 Answer 1

up vote 3 down vote accepted
svn info | awk '/^URL: / { print $2 }'

There's also svn info --xml if you'd rather parse XML.

There's no command line parameter that returns only the URL, if that's what you meant.

share|improve this answer
    
Yup, that´s what I meant. –  Deleted Feb 24 '12 at 14:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.