anujpandey

weather.sh

Aug 11th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. #!/bin/bash
  2. weather=$(curl -ss "wttr.in/Noida?format=3")
  3. UStime=$(curl -ss "http://worldtimeapi.org/api/timezone/America/Cambridge_Bay" | jq '.utc_datetime')
  4. myip=$(curl -ss ifconfig.co)
  5. echo $weather">>"$UStime">>"$myip
Add Comment
Please, Sign In to add comment