Y
Hacker News
new
|
ask
|
show
|
jobs
by
traviscj
3206 days ago
I prefer cat because > vs < is an easy typo to make but one clobbers the file. Happy to pay the performance penalty as insurance against that.
1 comments
vram22
3206 days ago
You can use the bash setting called noclobber to prevent such accidental deletion.
https://en.wikipedia.org/wiki/Clobbering
link
https://en.wikipedia.org/wiki/Clobbering