johnherman
MIS
I have a short EBCDIC file. Just think of it as a string of bytes of length 68250. I need to change the header record on that EBCDIC file, which is in the beginning of that string of bytes. I need to swap the position of two 8 byte fields. What am I doing wrong? Linux GNU Awk 3.1.7
awk `substr ($0,1,5) substr ($0,14,8) substr($0,6,8) substr($0,22,68250)` csus.tsys.stmtaddr.00.dy.sa.20140204.dat > csus.tsys.stmtaddr.00.dy.sa.20140204.new
==================================
The trouble with doing something right the first time is that nobody appreciates how difficult it was - Steven Wright
awk `substr ($0,1,5) substr ($0,14,8) substr($0,6,8) substr($0,22,68250)` csus.tsys.stmtaddr.00.dy.sa.20140204.dat > csus.tsys.stmtaddr.00.dy.sa.20140204.new
==================================
The trouble with doing something right the first time is that nobody appreciates how difficult it was - Steven Wright