Originally Posted by pixellany
Take off the redirect and you'll see the command works fine. I think the issue is that it keeps running and you probably have to wait until a buffer fills up before it will actually write to the file.
Indeed ... if he adds the fflush from my awk bit to his
it works as expected. It's just that the grep is unnecessary
to begin with. ;}