Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Nuvarande tid
- TID=$(date +'%H:%M')
- #Tid för händelse
- NUM=12:17
- #Om $TID är likamed $NUM så gör något
- if [[ $TID = $NUM ]]
- then echo "Time is correct"
- else echo "Time is not correct"
- fi
- #NeverW8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement