Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
masklinn
on April 6, 2017
|
parent
|
context
|
favorite
| on:
Fun at the Unix Terminal
Why would you even bother with that when `say` can take a string or read from stdin?
Just use
$ say $(fortune)
or
$ fortune | say -f-
For bonus coolness, add "-i" (it prints the lines and highlights the current word during reading).
mfukar
on April 6, 2017
|
next
[–]
Because it's fun spawning a new process and watching the otherwise idle cores of your box reach 0.1% usage for a millisecond.
nerdponx
on April 6, 2017
|
parent
|
next
[–]
Don't all three of those commands spawn new processes?
mfukar
on April 6, 2017
|
root
|
parent
|
next
[–]
Not _shell_ processes, no.
rbonvall
on April 6, 2017
|
prev
[–]
Not all commands accept input as arguments, so it's still a good trick to know.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Just use
or For bonus coolness, add "-i" (it prints the lines and highlights the current word during reading).