Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- read -p "Elija una opcion:
- 1) opcion 1
- 2) opcion 2
- " x
- if [ "$x" -eq 1 ]; then
- echo "opcion 1"
- elif [ "$x" -eq 2 ]; then
- echo "opcion 2"
- else
- echo "debe elegir opcion 1 o 2"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement