GNU bash

From Wiki :-)
Revision as of 00:20, 12 February 2018 by Savoundg (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Safe bash

Command Comments
set -o pipefail returns error if the pipe fails
set -e exit on the first program fail

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