5

Linux + replace STRING/WORD in file according to rule

view full story
linux-howto

http://unix.stackexchange.com – My target is to replace any word/string/Any characters in file with new word/string according to the following rules: If numeric characters on the left side of word/string then we not replace the word If numeric characters on the right side of word/string then we not replace the word remark - numeric means any number or [a-z] or [A-Z] The following Example described file before , and file after: I want to replace the word "$$OLD_WORD$$" with "&&NEW_WORD&&" example 1 - file Before replacement more file ABC$$OLD_WORD$$ABC $$OLD_WORD$$ $$OLD_WORD$$ 1$$OLD_W (HowTos)