I have two different files with one column each. The file 1 has more info and I want a command to search the matches against the file 2 and then return the original file 1 with an extra column saying for example "match"
File 1
Mg_134
Mg_560
File 2
Mg_1
Mg_134
Output
Mg_134 match
Mg_560
I tried to use join and grep -Ff, but I would like to have this specific output. Thanks