Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
eof
on July 14, 2017
|
parent
|
context
|
favorite
| on:
Bash-Snippets: A collection of small bash scripts ...
that's easier to remember than 'weather' for getting the weather?
tomswartz07
on July 14, 2017
[–]
`function weather() { curl "
http://wttr.in/$1
";}`
Not sure why it needs to be more complicated than that.
aaronchall
on July 17, 2017
|
parent
[–]
the function keyword is unnecessary - removing it makes the function creation more cross-compatible with different shells.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: