Open Tech archive
Sharing what I know!!!
About Me
Prakash
Working as Technical Lead in CollabNET software private limited.
View my complete profile
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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment