Y
Hacker News
new
|
ask
|
show
|
jobs
by
randusername
83 days ago
oh my god how could I have been doing this for so long and not realize that you can redirect
before
your binary.
I knew cat was an anti-pattern, but I always thought it was so unreadable to redirect at the end
1 comments
attentive
83 days ago
it seems smart until you accidently type >input.json and nuke the file
link
HappMacDonald
83 days ago
That sounds like a mistake which would be easily to make at the end of the line, unless you are contrasting input stream redirect against cat regardless where it's written on the line?
link
figmert
83 days ago
You can use sponge for that.
link