I have several files containing this line
I want to increment X in all the files.
If X was constant between the files, I could have a bash script looping around the files and doing ($1 containing the former release number and $2 the new one, ie. $1 + 1) :
sed 's/Release: '$1'/Release: '$2'/' <$file >$file.new
Now, how should I do if the release number is different between files ?
Is it doable with sed ?
should I use another tool ?