Lets say there's the following structure in an SVN repository :
etc.
I'd like to do the following with a bash script :
I'm new to bash, the download part is easy, but I'm stuck on the folder name extraction and comparison.
If your branches can be simply sorted, you can use something like this :
svn list http://plugins.svn.wordpress.org/all-in-one-seo-pack/branches | sort | tail -n 1
>>> 1.6.13/