News for hackers. Stuff that matters.
Re:Curl Wttr.in by mimimi31 on Friday June 26, 2020 @05:27AM (#23650191)
You could do something like this

  w () {
    curl -s "wttr.in/${*// /+}"
  }
to make it work with places that have spaces in their name. E.g.

  w new york
Re:Curl Wttr.in by igor_chubin on Friday June 26, 2020 @05:40AM (#23650251)
Just use IFS for this

w() { ( IFS=+; curl wttr.in/"$*";); }

Re:Curl Wttr.in by ikornaselur on Wednesday July 08, 2020 @11:03AM (#23770566)
I love when you can post something simple like a function/alias and learn so many new things. Never seen IFS before. Updated locally and works perfectly!