This outputs: Merge htseq files into one based on geneNames. Sample output
ENSG00000251243.1 0 0 0 0 0
ENSG00000240637.2 0 0 0 0 0
ENSG00000227366.1 0 0 0 0 0
ENSG00000104903.4 665 216 884 3254 689
ENSG00000228626.1 0 0 0 0 1
Forgot to mention, the order of pasted column will be in FileName order.
Like if you do listing using unix command ls -l read_counts/
You will get the order in which it has merged.
Finally got a solution to this problem
This woks like you asked.
Thank you man for your kind reply but I have already done, I am sorry for the delay. Was just needed to change the file name like 1.txt -> 01.txt, 2.txt -> 02.txt....................... etc and after I used your suggested awk code and worked fine.
By the way thanks a million.