Search a pattern in file and replace another pattern in the same line
问题 I would like to search for a pattern in bunch of source files. The pattern should act as a marker. If the pattern is found, I would like to process that line by performing a substitution of another string For example: Private const String myTestString = @"VAL15"; // STRING—REPLACE-VAL## Here, I want to search my source file for pattern STRING—REPLACE-VAL and then replace VAL15 with VAL20 in same. Output: private const String myTestString = @"VAL20"; // STRING—REPLACE-VAL## Tried below command