#!/bin/bash # #Compare two dotted-number versions. [ "$1" = "$2" ] && exit 0 [ "$1" = "`echo -e "$1\n$2" |sort -V |tail -n1`" ] && exit 0 exit 1