Guest User

Untitled

a guest
Dec 18th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. read -p "username: " username
  4. read -p "password: " password
  5.  
  6. case $username in
  7. admin|user|anonymous)
  8. if [[ $password == $username ]]; then
  9. echo "you are $username"
  10. else
  11. echo "wrong password"
  12. fi
  13. ;;
  14. *)
  15. echo "username not available"
  16. esac
Add Comment
Please, Sign In to add comment