Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: in file insert character in every row on nth position

by NetWallah (Canon)
on Feb 11, 2016 at 18:55 UTC ( [id://1155006]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1155006]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2024-04-23 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found