1 2 3 4 5 6 7 8 9
#!/bin/sh location="Saint-Petersburg" v=1 [ -n "$1" ] && v=$1 [ -n "$2" ] && location=$2 curl "v$v.wttr.in/$location"