var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Breaking data into 1500 byte chunks
I have a text file (5 MB). It appears as a single line in a text editor. But actually it has records of 1500 byte length each.
I want to strip it down to 1500 byte records. So 1500*3500 = 5 MB (approx). The record size is always 1500 bytes.
Does anyone have a script that I can run on this file to achieve this break.
You have 1 row of 5,000,000 bytes?
There is no CR LF chars?
Are there any delimiters?
No there are no delimiters. All I know is they are 1500 byte records. Each record has fixed column length. But all on a single line.
Where did the file come from?
An lrecl of 5mb?
Tell them to fix the file...
I guess you would need to write a pearl script or something...