Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
raimue
on Jan 23, 2018
|
parent
|
context
|
favorite
| on:
What happens when you grep the file you've redirec...
In most cases, it is too late anyway at that point, as the shell redirection already truncated the file. Such a check might only help you realize you just deleted the text you wanted to process.
asicsp
on Jan 24, 2018
[–]
yeah agree..
here I was specifically checking append, where it doesn't get truncated...
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: