Worked fine until the numbers in 2nd & 3rd substr became 1 or 2 digits long. Any ideas of how I should do this? Should I match pattern instead of getting substr?
Example:
This works well. I could neve figure out how to filter before feeding the text to sub() . Went back to my old ways of filtering /COMPLETED/ using sed and then feeding it to above script.