in reply to Re^3: repeat data at one line and grep as pre-set formatin thread repeat data at one line and grep as pre-set format
You could use a combination of lookbehind and lookahead:
perl -pe "s[(?<=\d{5})\s+(?=\d{8})][\n]g" t.txt [download]