Computer scienceSystem administration and DevOpsCommand lineBash syntax

Case statement and argument parsing

Time table

Report a typo

You are given the following bash script named dayandtime.sh.

#!/usr/bin/env bash
case $1 in
    Sat)
        echo "09:30 - 12:00"
        ;;
    Sun)
        echo "Closed all day"
        ;;
    *)
        echo "09:00 - 16:00"
        ;;
esac

What is the output when we execute; bash dayandtime.sh Mon?

Select one option from the list
___

Create a free account to access the full topic