awk search column from one file, if match print columns from both files
I'm trying to compare column 1 from file1 and column 3 from file 2, if they match then print the first column from file1 and the two first columns from file2. here's a sample from each file: file1 Cre01.g000100 Cre01.g000500 Cre01.g000650 file2 chromosome_1 71569 |655|Cre01.g000500|protein_coding|CODING|PAC:26902937|1|1) chromosome_1 93952 |765|Cre01.g000650|protein_coding|CODING|PAC:26903448|11|1) chromosome_1 99034 |1027|Cre01.g000100 |protein_coding|CODING|PAC:26903318|9|1) desired output Cre01.g000100 chromosome_1 99034 Cre01.g000500 chromosome_1 71569 Cre01.g000650 chromosome_1 93952 I've