Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- schedule=()
- for hour in $(seq 24); do
- echo -n "TODO at ${hour}hour : "
- read temp
- schedule+=($temp)
- done
- while [ : ]; do
- echo -n "check your schedule. enter the hour(1~24) (exit:0): "
- read temp
- if (( temp == 0 )); then
- break
- fi
- echo ${schedule[$temp]}
- done
Advertisement
Add Comment
Please, Sign In to add comment