reference_proteomes.taxid_map zcat */*/*.idmap" /> reference_proteomes.taxid_map zcat */*/*.idmap" /> reference_proteomes.taxid_map zcat */*/*.idmap"/>

/usr/bin/zcat: Argument list too long

518 Views Asked by At

I have used the following a guide with these commands:

echo "accession\taccession.version\ttaxid\tgi" > reference_proteomes.taxid_map
zcat */*/*.idmapping.gz | grep "NCBI_TaxID" | awk '{print $1 "\t" $1 "\t" $3 "\t" 0}' >> reference_proteomes.taxid_map

I used echo "accession\taccession.version\ttaxid\tgi" > reference_proteomes.taxid_map & zcat *.idmapping.gz | grep "NCBI_TaxID" | awk '{print $1 "\t" $1 "\t" $3 "\t" 0}' >> reference_proteomes.taxid_map

but I received the messaged that the argument list is too long:/usr/bin/zcat: Argument list too long

so I have tried xargs in this: find /Volumes/My\ Passport\ for\ Mac/uniprot | xargs zcat *.idmapping.gz | grep "NCBI_TaxID" | awk '{print $1 "\t" $1 "\t" $3 "\t" 0}' >> reference_proteomes.taxid_map but still received the long list argument message -bash: /usr/bin/xargs: Argument list too long, any suggestion?

0

There are 0 best solutions below