while loop

while true
do
    echo ""
done

for loop

for f in *.tar*;  do 
    
done

if elif else syntax

if [ "$test" == "--help" ]
then
    echo "1"
elif [ "$test" == "add" ]
then
    echo "add"
else
    echo "exit"
fi

Format date

thread_dump_time=$(date +"%Y-%m-%d %H:%M:%S")

Division

ACTUAL_CPU_USAGE=$((CPU_USAGE_INT / NO_OF_CPU_CORES))

Arithmatic Operations

var=$((var+1))