Monday, 27 May 2013

Shell Script to print day

echo "enter the your choice for day (in number):-"
read ch
 case $ch in
 1) echo "Sunday"
  ;;
2) echo "monday"
  ;;
3) echo "tuesday"
  ;;
4) echo "wednesday"
  ;;
5) echo "thirsday"
  ;;
6) echo "friday"
  ;;
7) echo "saturday"
  ;;
*)
echo "wrong choice"
;;
 esac

No comments:

Post a Comment