|Pathologically Eclectic Rubbish Lister|
One liner to subtract by 2by dirtdog (Monk)
|on Jul 24, 2013 at 14:02 UTC||Need Help??|
dirtdog has asked for the
wisdom of the Perl Monks concerning the following question:
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:
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.