16 lines
179 B
Plaintext
16 lines
179 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
if [ "$1" = "-h" ]; then
|
||
|
cat <<EOF>&2
|
||
|
Usage: ${0##*/} [OPTIONS]
|
||
|
|
||
|
Display weather forecast.
|
||
|
|
||
|
Use '${0##*/} :help' to list all options.
|
||
|
|
||
|
EOF
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
curl wttr.in/"$1"
|