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

You can, sure, but, tail seeks to EOF and then goes back until it finds "\n", awk cannot seek, so you must do what you did there, that means the bigger the file the longer the time.

And there's also tail -f, how would you go about doing that? a while loop that sleeps and reopens the file? yuck





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

Search: