awk '{ FIELDWIDTHS = "8 4 10 12 32 20 15 10 2"; OFS="~"; print $1,$2,$3,$4,$5,$6,$7,$8,$9 }' infile.txt> outfile.txt
goal was to insert ~ as a delimiter on a fixed width file
where i defined the field widths. This worked great except, for some reason it did not operate on the first line. Can someone tell me what I did wrong?
goal was to insert ~ as a delimiter on a fixed width file
where i defined the field widths. This worked great except, for some reason it did not operate on the first line. Can someone tell me what I did wrong?