Write a shell script that will print days of a week

 

Write a shell script that will print days of a week



Program =


#!/bin/bash

 

echo "enter a number"

read n

case $n in

1) echo "Sunday" ;;

2) echo "Monday" ;;

3) echo "Tuesday" ;;

4) echo "Wednesday" ;;

5) echo "Thursday" ;;

6) echo "Friday" ;;

7) echo "Saturday" ;;

*) echo "enter value between 1 to 7" ;;

esac



Output =