Skip to content

Instantly share code, notes, and snippets.

@trivoallan
Created March 16, 2011 09:53
Show Gist options
  • Select an option

  • Save trivoallan/872252 to your computer and use it in GitHub Desktop.

Select an option

Save trivoallan/872252 to your computer and use it in GitHub Desktop.
#!/bin/sh
VER=$1
REGEX='^[0-9]*\.[0-9]*\.[0-9]*$'
if echo "$VER" | grep -q $REGEX
then
echo 'YEAH RIGHT DUDE !'
else
echo ':('
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment