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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.