This should work in Bash, from a working directory. I've used it in Windows with [unixutils][1] installed: svn info |grep Revision: |cut -c11- [1]: http://sourceforge.net/projects/unxutils