I have 3 configuration files in my Linux box which contains config information for a custom application. I want to change some values in configuration files. The contents of the files and descriptions are given below:
config1 file content:
config2 file content:
config3 file content:
I want change all values 10x_64, 11x, 11x_64 to 12x_64 in all the files. Currently I'm using three commands to change the content; commands are given below:
sed -i 's/10x_64/12x_64/g' config1 sed -i 's/11x/12x_64/g' config2 sed -i 's/11x_64/12x_64/g' config3
I want a single generalized command to change the content of all 3 files.