Skip to content

Instantly share code, notes, and snippets.

@jmtd
Created September 4, 2015 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmtd/27395964be6985f03a2a to your computer and use it in GitHub Desktop.
Save jmtd/27395964be6985f03a2a to your computer and use it in GitHub Desktop.
pavonis$ cat test.sh
service="hi_there"
if [[ "$service" == *"_"* ]]; then
echo works 1
fi
if [ "$service" == *"_"* ]; then
echo works 2
fi
pavonis$ sh test.sh
works 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment