About Me

My photo
Working as Technical Lead in CollabNET software private limited.

Thursday, 28 August 2008

Replace particular field of line using awk

I was trying to replace the particular field of a line and found a suggestion for that.


echo 'count ****** 50' | gawk '{$2="\"5AB0\"";print}'


The above gawk command replaces the ****** with 5ABo.

No comments: