TunaAdmiral
MIS
I have a file with thousands of lines consisting of serial numbers (1 serial per line, fixed length of six characters each).
I need to do a grep for each serial number on another file.
So, if the first three rows of my serial number file are:
A12345
B12345
C12345
Then the following grep operations need to be performed:
grep A12345 serialhistory.txt
grep B12345 serialhistory.txt
grep C12345 serialhistory.txt
How do i do this in a script?
Thanks!
I need to do a grep for each serial number on another file.
So, if the first three rows of my serial number file are:
A12345
B12345
C12345
Then the following grep operations need to be performed:
grep A12345 serialhistory.txt
grep B12345 serialhistory.txt
grep C12345 serialhistory.txt
How do i do this in a script?
Thanks!