blob: 36f551bb6c236894dc0784c5e9dee756fff09cfb (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash
curl 'ftp://ftp.gnu.org/gnu/gengetopt/' 2> /dev/null | \
awk '{print $9}' | \
grep '^gengetopt-[0-9.]\+\.tar\.gz$' | \
sed 's|^gengetopt-\([0-9.]\+\)\.tar\.gz$|\1|' | \
sort -V | \
tail -n1
|