Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. while [[ "$#" > 0 ]]; do case $1 in
  2. -country) country="$2"; shift;shift;;
  3. *) echo "Unknown parameter passed: $1";shift;shift;;
  4. esac; done
  5.  
  6. if [[ $country = "sverige" ]] || [[ $country = "danmark" ]] || [[ $country = "norge" ]]
  7. then
  8. echo "Du bor i skandinavien."
  9. else
  10. echo "Du bor inte i scandinavien"
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement