Shell Programming/String comparison


  string1 = string2  equal
  string1 != string2  not equal
  -n string  not null
  -z string null