Originally posted by: pharryr
I have a requirement to replace two strings at a time in a text file from within a BASH script.
SomeCommand ${FindString} ${ReplaceWithString}
Where…
"SomeCommand" is usable in a BASH 5 script on AIX 7.2
${FindString} is an OS environment variable
${ReplaceWithString} is an OS environment variable
The original file is updated, not just the command's buffer.