On 11/27/2010 10:36, belcampo wrote: > Many thanks in advance for a bash/sed guru, who is able to help me > with this. Perhaps at this point it would be prudent to switch to something like perl/python/php with clean syntax for string processing and math.