1 2 3 4 5 6 7 8
#!/bin/bash curl 'https://www.intra2net.com/en/developer/libftdi/download.php' 2> /dev/null | \ tr '"' '\n' | \ grep '^download/libftdi1-[0-9.]\+\.tar\.bz2$' | \ sed 's|^download/libftdi1-\([0-9.]\+\)\.tar\.bz2$|\1|' | \ sort -V | \ tail -n1