I want to check the lines that match the first field of File-1 in File-2 (where it appears after the "id") and create two output files as follows (based on whether the item is found in File-2 or not):
Output-1 (when the first field of File-1 is found at File-2)
-------------------------------------------------------
a1234 123456
t5678 789012
Output-2 (when the first field of File-1 is not found in File-2)
----------------------------------------------------------
But, I have issues when using it when the input file-2 has "test-2" instead of "test-2" or "test-3" instead of "test3" (the use of "-" in other columns.)
So, I am looking for the script to look only for the field that has the "id-" but must be able to ignore if the "-" presents in any other column.