I am trying to grep a pattern from a growing log file and redirect it to another file. I saw some suggestions like :
tailf log | grep --line-buffered "pattern" >> new_file
But this works on Linux i guess, I am using AIX 5.3 Please help ! Thanks much in advance.