Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
veyron
on Feb 26, 2012
|
parent
|
context
|
favorite
| on:
Useful use of cat(1)
In some older versions of bash, when dealing with process substitution, you actually needed the dash.
For example
get_data | tee >(cmd) get_data | tee >(cat | cmd)
would fail but
get_data | tee >(cat - | cmd)
would succeed.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
For example
would fail but would succeed.