Computer scienceSystem administration and DevOpsCommand lineBash syntax

Best practices for bash scripts

Case statement

Report a typo

Format the following lines from a bash script to create a functional case statement.

Remember to properly indent your code.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                * )
              
                echo $(($2 * $3));;
              
                case $1 in
              
                esac
              
                multiplier )
              
                echo "Do you not like multiplication?";;
              
___

Create a free account to access the full topic