Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- function wttr(){
- if [ -z "$2" ]
- then
- curl -s "wttr.in/$1?0"
- else
- curl -s "wttr.in/$1?$2"
- fi
- }
- wttr Brighton format='%c+%t+%w'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement