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

> Hmmn. A 'smart enough' compiler would combine the two grep patterns into a single pattern and run them in reverse, stopping at the first 5 lines. :-)

Only if `/var/log/somefile` is a regular file and isn't opened for writing by any other process. Or your "smart enough compiler" doesn't care about doing the same thing.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: