I am trying to write a script that reads a txt file, searches for branch=xxx (xxx= any 3 digit number) and replaces the line with branch=yyy) yyy=input variable.
the script below appends yyy onto xxx rather than replace - any ideas.
Test.123 is a text file that contains the text BRANCH=123...