1 2 3 4 5 6 7 8
#!/bin/bash curl 'https://sourceforge.net/projects/panotools/files/latest/download' 2> /dev/null | \ tr '/?' '\n\n' | \ grep '^libpano13-[0-9.]\+\.tar\.gz$' | \ sed 's|^libpano13-\([0-9.]\+\)\.tar\.gz$|\1|' | \ sort -V | \ tail -n1