We want to find a specific line in a file and change a value 3 lines after the match.
For example we are searching for the string "class_rproxy"
cat /var/git/control/Puppetfile | grep -A 3 class_rproxy
Result:
# class_rproxy
mod 'rproxy',
:git => 'git@abcde.de:PE/rproxy.git',
:tag => '1.3.59'
We want to change the value "1.3.59" to "12.4.60"
How can we do that to change only this value without manualy editing it.
Thanks