#!/bin/bash

curl "http://ftp.gnu.org/gnu/help2man/" 2> /dev/null | \
  tr "<>" "\n\n" | \
  grep "^help2man-[0-9.]\+\.tar\.xz\$" | \
  sed "s/^help2man-\([0-9.]\+\)\.tar\.xz\$/\1/" | \
  sort -V | \
  tail -n1