Shell Programming/String comparison

< Shell Programming


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