Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- read -p "What is the date of the event? " d
- date -d "$d" -I > /dev/null|| exit 1
- date="$(date -d "$d" +%m/%d/%Y)"
- day="$(date -d "$d" +%A)"
- echo "You Selected $date"
- echo "and $day was the day of the week"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement