Interger Expressions Flashcards
1
Q
interger1 -eq interger2
A
interger1 is equal to interger2
2
Q
interger1 -ne interger2
A
interger1 is not equal to interger2
3
Q
interger1 -le interger2
A
interger1 is less than or equal to interger2
4
Q
interger1 -lt interger2
A
interger1 is less than interger2
5
Q
interger1 -ge interger2
A
interger1 is greater than or equal to interger2
6
Q
interger1 -gt interger2
A
interger1 is greater than interger2
7
Q
What is a Modulus aka mod?
A
int % 2 (Divides the number by 2 and returns the remainder)
8
Q
$((a + 200))
A
Add 200 to $a
9
Q
$(($RANDOM%200))
A
Random number 0..199
10
Q
declare -i count
A
Declare “count” as type integer