Advertisement
rfmonk

simple_if_else.sh

Jan 26th, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. clear
  4. echo -n "Enter your name: "
  5. read name
  6.  
  7. if [ "$name" = "Stuart" ]
  8. then
  9.     echo "bienvenido"
  10. elif [ "$name" = "change_to_name" ]
  11. then
  12.     echo "comosta ka"
  13. else
  14.     echo "I don't know you"
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement