GNU bash: Difference between revisions

From Wiki :-)
Jump to navigation Jump to search
m Add references category
-n string
Line 6: Line 6:
| -d ''file''
| -d ''file''
|''file'' is a directory
|''file'' is a directory
|-
| -n ''string''
|the length of ''string'' is nonzero
|-
|-
|''string1'' != ''string2''
|''string1'' != ''string2''

Revision as of 00:17, 24 June 2016

test or [ [1][2]

Command Comments
-d file file is a directory
-n string the length of string is nonzero
string1 != string2 string1 and string2 are not equal

References