so I have two files, one containing barcodes and the other containing what I want to search. File 1 is in the format:
BC01 123
BC02 124
BC03 125
my second file is in the format:
INV01 123axxxx
INV02 123bxxxx
INV03 124cxxxx
INV04 125dxxxx
Both files are tab delimited between the "tag" and the rest of the line.
So what Im currently trying to do is to search the second file with the barcodes found in the first and output them to separate files.
So the end result that I want are 3 separate files BC01, BC02, BC03 with the corresponding inventory numbers with the barcode cut off, for example:
file BC01 would read:
INV01
axxxx
INV02
bxxxx
What I have right now are lists of the separate tab delimited portions of both files: BCID, BCnumber, INVID, and INVnumber and I'm not quite sure how to proceed from here.