I have input text file with single line having thousands of records one after another. I want to split
them after length of 10 characters each.
**Input Record** -
====================== Begin of data =========================
abcdefghijklmnopqrstuvwxyz1234567890 <= Input file having all records on single line
====================== End of data =========================
**Expected output** -
====================== Begin of data =========================
abcdefghij <= each line of 10 characters
klmnopqrst
uvwxyz1234
567890
====================== End of data =========================
Please help me to do this using batch script.
** Try using Notepad++**
It worked well using Notepad++ with below regular expressions –
Find => (?-s).{10}
Replace => ${0}\r\n
New contributor
Prashant is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.