Hi Please I would like to merge a big number of .txt files in one. They all have the same columns , how to merge and keep only the header from the first ? It's a big number of files so I think I will need to use xargs ?! These are examples of what I have in my files :
CH SNP A1 A2 N P
20 SNP2 A G 2 3.70E-03
19 SNP3 C T 2 6.47E-03
CH SNP A1 A2 N P
10 SNP1 G C 2 3.11E-05
In total I have about 100000 files to merge with one header. What I ant to have is :
CH SNP A1 A2 N P
20 SNP2 A G 2 3.70E-03
19 SNP3 C T 2 6.47E-03
10 SNP1 G C 2 3.11E-05
Thanks !
Not really a bioinfo question I would say.
Can you add why it might relate to bioinformatics anyway?
And how would you like to see those files merged? It's always helpful to add a small example of what you try to achieve
Ok I updated my post . Thanks