Professional Documents
Culture Documents
• Variable
• Example
• num=10
echo
• Syntax :
• echo [string]
• Double Quote
• variable=apple
• echo "$variable“
• ...
• output: apple
• we use single quotes, the result will be
• different
• echo '$variable‘
• ... output:
• $variable
read
• read <variable_name>
• if conditional expression
• then
command(s)
• fi
• if conditional expression
• then
• Command
• elif conditional expression
• then
• Command
• else command
• fi
• for variable in list
• do
• command(s)
• done
• while condition
• do
• command(s)
• done
• bc command in Linux
• bc is basic calculator