I will probably have done it “manually” by the time I get an answer for this.
I have two variables (varA, varB) I want to replace with (a, b) respectively, this currently requires two separate find and replaces.
with regex grep I know how to do two separate searches using
varA | varB
but there is no replace function that will similarly do a respective replacement
unless you know better? thanks for any insight
grep is used for searching pattern in a given input. You should use sed for text replacements. For multiple replacements in single sed command just use it like this: