Skip to content

Instantly share code, notes, and snippets.

View revivek's full-sized avatar

Vivek Patel revivek

View GitHub Profile
@tnip
tnip / weather
Created July 19, 2013 01:30
because i don't like switching apps to get the weather [update] it's also here if you want it/want to bug me about it: https://github.com/tnip/miscellaneous/blob/master/weather
weather(){
# Usage:
# weather 13210
# weather syracuse ny
# weather "new york" ny
# weather nyc
if [ $2 ]
then
1=$(echo "$1" | sed -e "s/ /_/g")