Ready to be published? LXer is read by around 350,000 individuals each month, and is an excellent place for you to publish your ideas, thoughts, reviews, complaints, etc. Do you have something to say to the Linux community?
Global replacement of A with B might be a mistake unless you're 100% sure that you really, truly want to replace every instance of A with B in the data file. It's much safer to do replacements targeted at particular instances of A, and this post reviews a few strategies for using sed and AWK for targeted string replacements.