Skip to content

Instantly share code, notes, and snippets.

@tian2992
Created November 25, 2010 20:33
Show Gist options
  • Save tian2992/715876 to your computer and use it in GitHub Desktop.
Save tian2992/715876 to your computer and use it in GitHub Desktop.
#!/bin/bash
S1='astring'
S2='a string'
if [ "$S1"="$S2" ];
then
echo "S1('$S1') is not equal to S2('$S2')"
fi
if [ "$S1"="$S1" ];
then
echo "S1('$S1') is equal to S1('$S1')"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment