How to replace a string in a file with awk on a *nix system
by bram
example:
cat oldfile | awk ‘{gsub(“;old text string”, “new text string”); print}’ > newfile
mv -f newfile oldfile
example:
cat oldfile | awk ‘{gsub(“;old text string”, “new text string”); print}’ > newfile
mv -f newfile oldfile