GNU bash

From Wiki :-)
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