Guest User

Untitled

a guest
May 20th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. echo enter time
  2. read t
  3. if [ "$t" -ge 5 ] && [ "$t" -lt 12 ]; then
  4. echo good morning
  5. elif [ "$t" -ge 12 ] && [ "$t" -lt 17 ]; then
  6. echo good afetrnoon
  7. elif [ "$t" -ge 17 ] && [ "$t" -lt 21 ]; then
  8. echo good evening
  9. else
  10. echo good night
  11. fi
Add Comment
Please, Sign In to add comment