in reply to in file insert character in every row on nth position

Your specification does not match your example, for the second line.

If followed, your line would be:

cc-20,dd:-kk:jj,01,cc
Would you care to revise/clarify the specification, or sample data ?

UPDATE:The OP updated the original node without explanation/annotation. That removes the context for this node.

        "Think of how stupid the average person is, and realize half of them are stupider than that." - George Carlin

Replies are listed 'Best First'.
Re^2: in file insert character in every row on nth position
by ukhare (Novice) on Feb 11, 2016 at 19:05 UTC
    YES,

    Here is the sample data

    2016-02-06-0240:00 2016-02-06-0540:00 2016-02-06-0740:00

    expected output

    2016-02-06-02:40:00 2016-02-06-05:40:00 2016-02-06-07:40:00