Last modified on 24 November 2010, at 16:46

Shell Programming/String comparison


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