I had many large .txt like:
xx yy ... zz
XX YY ... ZZ
I want to add a header row to them, each with a different number of columns:
1 2 ... 999
xx yy ... zz
XX YY ... ZZ
Since they have a different number of columns, I could not directly type "1\t2\t....", and I guess that the code should include variables like $NF
. Do you have any idea? Thanks for your help.