#!/bin/bash

curl "ftp://ftp.fox-toolkit.org/pub/" 2> /dev/null | \
  awk '{print $9}' | \
  grep "^fox-1\.6\.[0-9.-]*\.tar\.gz\$" | \
  sed "s|^fox-\(.*\)\.tar\.gz\$|\1|" | \
  sort -V | \
  tail -n1