Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- names=(jack john)
- IS_SEEN=""
- for i in "$names"; do
- if [ "$1" = "$i" ]; then
- IS_SEEN="yes"
- fi
- done
- if [ "$IS_SEEN" = "" ]; then
- echo "Choose from list!"
- exit 0
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement