if statement
if [[ condition ]]; then
body
elif [[ condition ]]; then
fi
How to create indexed array
array_name=(“one” “two” “three”)
how to create an associative array (and add new key pairs)
declare -A person
person[“name”]=Carson
how to access associative array keys
${!associative_array[@]}
how to access associative array values
${associative_array[@]}
for loop syntax
for x in list; do
code
done
command substitution
var=$(command)
passes the output of a command into a variable
what is a heredocument?
command «_space;delimited (“eof”)
code
eof
sending inputs into a command