Phu  | 2 minutes | Tags:  bash  linux

Math

Commands

$(command)
`command`

Variables

User input

Logic and If-else

Arrays

Braces

Loops

for i in 1 2 3
do
  ...
done
while [[ ]]
do
  ...
done

Functions

{%highlight bash%} #f () { function f { local result=0 … echo $result } {%endhighlight%}