Targeted string replacements with sed and AWK

Posted by Bob_Mesibov on Apr 10, 2020 12:05 AM EDT
BASHing data; By Bob Mesibov
Mail this story
Print this story

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.

Full Story

  Nav
» Read more about: Story Type: Tutorial

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.