Advertisement
mllm

weather

Jul 11th, 2017
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. #!/bin/bash
  2. weather() {
  3.      if [ ! -z $1 ]
  4.      then
  5.          curl -4 http://wttr.in/$1
  6.      else
  7.          curl -4 http://wttr.in/Patra
  8.      fi
  9.  
  10. }
  11. weather $1
  12. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement