Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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: