Posted on 2000-02-17
I have a long string of text, for example:
I need to create an output file with each value on a separate line. The values are either text, numeric or dates etc and are fixed widths.
I have tried using awk and substr to select the first 10 characters and output on a line, followed by linefeed, then the next 8, then line feed, then next 15 and line feed etc.
Can anyone provide me with an awk script to do this - or an alternative program I can use?
By the way im using GNUs awk on win95 platform.
thanks and regards, kevin