Hi All ,
I am having an input file like this
Input file
r s
e y
Pin Numbers s n
eppppppppppppppppppc
taaaaaaaaaaaaaaaaaah
_331111111100000000r
n010145678989234567o
pattern offset
scan0_core_p 2965 11101101010LLLLLHLL0
^
scan0_core_p 2967 11111010111HHLLLHLL0
^
scan0_core_p 2968 11110110011HLLLHHHL0
^
scan0_core_p 2976 11110111100LLHLLHHL0
^
scan0_core_p 2977 11111011110LHHLLHLL0
^
scan0_core_p 2978 11100010110HHLLLHLL0
^
I want to create space in my Third column of the input file
and output should be something like this
Pin Numbers s n
e p p p p p p p p p p p p p p p p p p c
t a a a a a a a a a a a a a a a a a a h
_ 3 3 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 r
n 0 1 0 1 4 5 6 7 8 9 8 9 2 3 4 5 6 7 o
pattern o f f s e t
scan 0_core_ p 2965 1 1 1 0 1 1 0 1 0 1 0 L L L L L H L L 0
^
scan0_core_ p 2967 1 1 1 1 1 0 1 0 1 1 1 H H L L L H L L 0
I am using below stated script
awk 'BEGIN{FS=OFS=""} {for (i=1;i<=NF;i++) {if ( i%1==0) $i=$i " "}}1' input.file
But this script is changing the content in other columns also
Could you help me out ?