我需要一个包含62列的输出文件,file1的第一列和第二列以及另一个文件的第7列的其余列...我这样做了 [izadi @ lbox161 subread-1.4.6-p5-source] $ paste<(cut -f1,7 counts018347.txt)<(cut -f7 counts019035.txt)<(cut -f7 SRR074122.txt)< (cut -f7 SRR074123.txt)<(cut -f7 SRR314813.txt)<(cut -f7 SRR314814.txt)<(cut -f7 SRR314815.txt)<(cut -f7 SRR314819.txt)< (cut -f7 SRR331224.txt)<(cut -f7 SRR346552.txt)<(cut -f7 SRR346553.txt)<(cut -f7 SRR390313.txt)<(cutcd / usr / data / nfs6 / izadi /microarray/subread-1.4.6-p5-source/ad-1.4.6-p5-source]$ paste<(cut -f1,7 counts018347.txt)<(cut -f7 counts019035.txt)<( cut -f7 SRR074122.txt)> summary.txt 太多了(' s。 [izadi @ lbox161 subread-1.4.6-p5-source] $
答案 0 :(得分:0)
您可以使用临时文件,如下所示:
cut -f1,7 counts018347.txt > tmp1
cut -f7 counts019035.txt > tmp2
cut -f7 SRR074122.txt > tmp3
cut ...
paste tmp1 tmp2 tmp3 tmp...> summary.txt