Bash Script Writting Commands Flashcards
1
Q
-d
A
Directory test, if
2
Q
-f
A
File test, if
3
Q
&
A
Writable/variable test, if
4
Q
-e
A
Exists file, if
5
Q
[[]]
A
Bracket format to contain regex
6
Q
-eq
A
Equality
7
Q
-ne
A
Inequality
8
Q
-gt
A
Greater
9
Q
-lt
A
Lesser
10
Q
-ge
A
Greater than or equal
11
Q
-le
A
Lesser than or equal
12
Q
$() or -
A
Command expression. For use in [for i in ] -esque statements.
13
Q
seq
A
Step through numbers in range. Default 1. Number in between and is a defined increment.
14
Q
exec
A
Redirect output from shell to file
Ex: exec > out.log
15
Q
read
A
Read input from user applies to var. for command script.