I need and awk script that compare the first column of two files tab-delimited and each time there is a match I need to print the second file else I need all the lines of the first file
file1.txt
denovo0 bacteria 0.99
denovo1 bacteria 0.98
denovo2 bacteria;Firmicutes;clostridium 0.99
denovo3 bacteria;Firmicutes;bacillus 0.98
file2.txt
denovo0 bacteria;Gammaproteobacteria;pseudomonas 0.99
denovo1 bacteria;Alphaproteobacteria;Rhizobium 0.98
desired_output.txt
denovo0 bacteria;Gammaproteobacteria;pseudomonas 0.99
denovo1 bacteria;Alphaproteobacteria;Rhizobium 0.98
denovo2 bacteria;Firmicutes;clostridium 0.99
denovo3 bacteria;Firmicutes;bacillus 0.98