Skip to content

Instantly share code, notes, and snippets.

@jsonUK
jsonUK / svnurl.sh
Created November 23, 2012 15:44 — forked from westonruter/svnurl.sh
Echo and pbcopy the URL for the given SVN working copy
#!/bin/bash
# Prints and copies to the clipboard the SVN URL of the current working
# directory or the first command line argument
# by @westonruter; use of awk and tr thanks to @josh_wnj
if [ $# == 0 ]; then
cwd=`pwd`
else
cwd="$1"
fi