#!/bin/bash curl -Ss 'https://support.hdfgroup.org/ftp/HDF5/current/src/' | \ tr '<>' '\n' | \ grep '^hdf5-[0-9.]\+\.tar\.gz$' | \ sed 's/^hdf5-\([0-9.]\+\)\.tar\.gz$/\1/' | \ sort -V | \ tail -n1