AwkRocks 0 Newbie Poster

Hi Friends.
I am trying to conver the following grep syntax to replace using awk pattern match. Can you please help?

tail -F $logFiles | grep " ERROR " | grep -v 'ERROR_SERVER \|Session is null for endpointId\|SYNCED_IN_VIEW_UPDATED'| cut -d" " -f10-14 | awk 'BEGIN..............}'

I am seeing some buffering problems with tail -F piped to grep. So, would like to avoid grep.. Can someone help me how i can use pattern match instead of "grep " ERROR " | grep -v 'ERROR_SERVER \|Session is null for endpointId\|SYNCED_IN_VIEW_UPDATED'| cut -d" " -f10-14"?

Thanks
Srini

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.