Skip to content

Instantly share code, notes, and snippets.

@khanhtc1202
Created July 14, 2018 17:51
Show Gist options
  • Select an option

  • Save khanhtc1202/78ba0eba16d60ed4f9a3a8a4fb4f3a76 to your computer and use it in GitHub Desktop.

Select an option

Save khanhtc1202/78ba0eba16d60ed4f9a3a8a4fb4f3a76 to your computer and use it in GitHub Desktop.

Revisions

  1. khanhtc1202 created this gist Jul 14, 2018.
    11 changes: 11 additions & 0 deletions weather.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/bin/bash
    #
    # khanhtc 08-11-2017

    test -z "$1" && exit

    BASEURL="http://wttr.in/"
    method="curl -4"

    # Run command get weather
    $method $BASEURL$1