I have a big file in this format, whose first few lines I am showing you including the header.gene    c1  c2  c3  c4  c5  c6  c7  c8G1*1    0   0   0   0   0   0   0   0G2*2    0   0   0   0   1   1   1   1G3*3    0   0   2   2   44  44  62  62G4*4    22  0   46  0   1308    7   1773    4First line with the gene is the header line. I want to keep it as it is and then I want to split the remaining line with FS = *, so that now I have a file looking like this as outputgene    coord   c1  c2  c3  c4  c5  c6  c7  c8G1  1   0   0   0   0   0   0   0   0G2  2   0   0   0   0   1   1   1   1G3  3   0   0   2   2   44  44  62  62G4  4   22  0   46  0   1308    7   1773    4So also I want to place an extra field in the header line named 'coord', so that when i split the subsequent lines I have everything ordered.I know how to use awk for splitting but header line is what is confusing meawk -F '*' -v OFS=\t '{print $1,$2}' ##This is for 2nd line and onwards
awk manipulation of file
awk