Jump to content

Shell Programming/String comparison

From Wikibooks, open books for an open world


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