-
echo $SHELL
Output: /bin/bash
-
bash app.sh
-
#!/bin/bash -
chmod u+x app.sh
-
$VARIABLE_NAME -
read -
if [ $X = $Y ]; then # Do Something elif [ $X = $Z ]; then # Do Something else # Do Something fi
-
case $X in $Y | $Z) # Do Somethisg ;; $A) # Do Somethisg ;; *) # Do Somethisg ;; esac
-
MY_ARRAY=(one two three)
echo ${MY_ARRAY[@]}
Output: one two three
echo ${MY_ARRAY[0]}
Output: one
echo ${MY_ARRAY[1]}
Output: two
echo ${MY_ARRAY[2]}
Output: three