1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash latestVersion="$(\ curl "http://sourceforge.net/projects/wxwindows/files/" 2> /dev/null | \ tr "\"" "\n" | \ grep "^/projects/wxwindows/files/2\.8\..*/\$" | \ sed "s|^/projects/wxwindows/files/\(.*\)/\$|\1|" | \ sort -V | \ tail -n1)" echo -n "${latestVersion}"