dirtdog has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I'm trying to figure out how to use a one liner to search & replace a header count. For example, the following line is the header:
0TONYHLDGS201307240901201307240000000496
The Last 10 digits are always the record count. In this example the record count is 0000000496 or 496.
Is it possible to use a one liner to subtract by 2 to make the count 0000000494?
I should also add the count will be different every day
Any help would be greatly appreciated.
Tony
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: One liner to subtract by 2
by choroba (Cardinal) on Jul 24, 2013 at 14:05 UTC | |
by derby (Abbot) on Jul 24, 2013 at 14:08 UTC | |
by choroba (Cardinal) on Jul 24, 2013 at 14:10 UTC | |
by Anonymous Monk on Jul 24, 2013 at 14:28 UTC | |
by choroba (Cardinal) on Jul 24, 2013 at 14:30 UTC | |
|
Re: One liner to subtract by 2
by rjt (Curate) on Jul 24, 2013 at 14:08 UTC | |
|
Re: One liner to subtract by 2
by hdb (Monsignor) on Jul 24, 2013 at 14:34 UTC | |
|
Re: One liner to subtract by 2
by dirtdog (Monk) on Jul 24, 2013 at 14:52 UTC |