1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash latestVersion="$(\ curl "https://crux.nu/~tek/" 2> /dev/null | \ tr "\"" "\n" | \ grep "^mplayer-[0-9.-]*\.tar\..*\$" | \ sed "s/^mplayer-\(.*\)\.tar\..*\$/\1/" | \ sort -V | \ tail -n1)" echo -n "${latestVersion}"