There are already a number of solution in the counter example series, but this one is quite different. It is actually based on a question I got from one of my former students at one of the big hi-tech companies.

Here we have a file with lots of content, including some numbers in more or less arbitrary places. We would like to increase these numbers.

examples/counter_template/counter.txt

This is a file with several number For example 8
In the second row there are two number 3 and 23
There are also numbers between other characters: #15# and =40=

In the basic version we would like to increase each number by one. In the extended version we will want to supply a file with "rules" how to change each number.