Hi,
I have an image written in ascii text format, with the data all on one long line. I would like to split this up so that each data value is on a new line.
So, I have:
Header
Header
1.123456 12.123456 123.123456 12.123456 ...etc
And I would like to produce:
Header
Header
1.123456
12.123456
123.123456
...
The UNIX 'fold' command won't work because of the differing numbers of characters in each data value.
Also the line goes on for several hundred thousand characters. I hear that awk has limitations on line length - can these be avoided, or is this simply impossible with awk?
Suggestions in anything other than awk are also welcome.
Thanks.
I have an image written in ascii text format, with the data all on one long line. I would like to split this up so that each data value is on a new line.
So, I have:
Header
Header
1.123456 12.123456 123.123456 12.123456 ...etc
And I would like to produce:
Header
Header
1.123456
12.123456
123.123456
...
The UNIX 'fold' command won't work because of the differing numbers of characters in each data value.
Also the line goes on for several hundred thousand characters. I hear that awk has limitations on line length - can these be avoided, or is this simply impossible with awk?
Suggestions in anything other than awk are also welcome.
Thanks.