4 ms·
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
by mimimi31 6y ago
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
- igor_chubin 6y agoJust use IFS for this w() { ( IFS=+; curl wttr.in/"$*";); }
- ikornaselur 6y agoI 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!