I have several files containing this line
Release: X
I want to increase X in all files.
If X were constant between files, I could loop around the bash script files and do ($ 1, containing the previous release number, and $ 2 new, i.e. $ 1 + 1):
sed 's/Release: '$1'/Release: '$2'/' <$file >$file.new
Now, how do I do if the release number is different between the files?
Can I deal with sed?
use another tool?
Barth source share