Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- list=(M T W T F S S)
- read -p "input data : " choice
- if [[ $choice =~ ^[0-9]+$ ]]; then
- echo "choice{list[x%7]}"
- else
- echo "Could not understand input! Script only recognises ...."
- echo "Try to enter again"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement