1

awk multiple delimiters

view story
linux-howto

http://www.unix.com – Hi Folks, This is the first time I ever encountered this situation My input file is of this kind cat input.txt Code: 1 PAIXAF 0 1 1 -9 0 0 0 1 2 0 2 1 2 1 7 PAIXEM 0 7 1 -9 1 0 2 0 1 2 2 1 0 2 9 PAKZXY 0 2 1 -9 2 0 1 1 1 0 1 2 0 1 Till the sixth column (which is -9), I want my columns to be in the same way as the input. After the sixth column, I want to merge every two columns till the end of line. I have million columns. my output will be Code: 1 PAIXAF 0 1 1 -9 00 01 20 21 21 7 PAIXEM 0 7 1 -9 10 20 12 21 02 9 PAKZXY 0 2 1 -9 20 11 10 12 01 Thanks (HowTos)