Advanced

Targeted string replacements with sed and AWK

Posted by Bob_Mesibov on
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

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

This topic does not have any threads posted yet!

You cannot post until you login.