Skip to content

Instantly share code, notes, and snippets.

@khanhtc1202
Created July 14, 2018 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khanhtc1202/78ba0eba16d60ed4f9a3a8a4fb4f3a76 to your computer and use it in GitHub Desktop.
Save khanhtc1202/78ba0eba16d60ed4f9a3a8a4fb4f3a76 to your computer and use it in GitHub Desktop.
Check weather on terminal
#!/bin/bash
#
# khanhtc 08-11-2017
test -z "$1" && exit
BASEURL="http://wttr.in/"
method="curl -4"
# Run command get weather
$method $BASEURL$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment