Inserting delimiter after a specific number of chars

Hello guys,

I have a problem where I need to add a delimiter, that can be | for example, after each 28000 chars.

The problem is that sometimes 1 row, which should contain 28000 chars is split in 2, so I want to put the delimiter after each 28000 so I will know the end of each row.

Please let me know of it doesn't make sense.

Thanks all

Welcome to the forum Diogo R Jesus.

It would be most helpful if you can post a relevant portion of the input you intend to use, an example of the expected output and lastly but not least, any script showing any efforts you have already tried.

Perhaps an example working on an expected 30 characters would be more appropriate than a 28,000 character wide input!

Are you saying that you sometime get the input:-

123456789012345678901234567890
123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890

.... and you want the output:-

123456789012345678901234567890|
123456789012345678901234567890|
123456789012345678901234567890|123456789012345678901234567890
123456789012345678901234567890|

Have I understood you correctly?

Robin