On Mon, 8 Feb 2010, Philippe Hezaine wrote:
Ha! Ha! May be you are fallen into a trap.
My previous snippet was not complete!
If you want to become a SuperSir (the ultimate step being SuperMan) you
have to overcome at least two issues. :)
Ha! :-) I'll have to pass on SuperSir, sorry. I can't
spend any more time on this.
Yes, it would be simple to match 'line' against a regular
expression (like "^[0-9]*:[0-9]*:[0-9]* .*") and only
process the lines that match. (Just print out non-matching
lines unprocessed.) The other parts just need a little
book-keeping.
FWIW, your previous snippet /did/ have negative numbers in
it. :-P
Peace,
Gabriel