summaryrefslogtreecommitdiff
path: root/manualPorts/parallel/lastVersion.sh
blob: 1a12b599171c7a02abaa9447664e7d5282bb13bd (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

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