Gurus,
Being new to AWK, is there a way to take a very long string (over 2048) and create 20 character lines from it? I have a sample string that look like this:
ZP~19206-3*PAS~G~~~~LYC.RRAAE LXXPCLEAR,MODE*PO1~71~30~R EA~9.45~PE~BP~TK21280Y~VP~2328RY*PWW~V~~~~LDWLIXXT*PQA~8~150~RR~(.09~PE~BP~DK23252Y3~SS~21877Y3*
and would like to create something like this:
ZP~19206-3*PAS~G~~~~
~LYC.RRAAE LXXPCLEAR
,MODE*PO1~71~30~R EA
~9.45~PE~BP~TK21280Y
etc...
This string is read in from a file that has no control characters.
Thanks,
Henry
Being new to AWK, is there a way to take a very long string (over 2048) and create 20 character lines from it? I have a sample string that look like this:
ZP~19206-3*PAS~G~~~~LYC.RRAAE LXXPCLEAR,MODE*PO1~71~30~R EA~9.45~PE~BP~TK21280Y~VP~2328RY*PWW~V~~~~LDWLIXXT*PQA~8~150~RR~(.09~PE~BP~DK23252Y3~SS~21877Y3*
and would like to create something like this:
ZP~19206-3*PAS~G~~~~
~LYC.RRAAE LXXPCLEAR
,MODE*PO1~71~30~R EA
~9.45~PE~BP~TK21280Y
etc...
This string is read in from a file that has no control characters.
Thanks,
Henry