I need to write a batch script to copy those lines from a pipe-delimited file that have one of two given ID numbers.
For example, for this file:
Jack | 12 | Jacksonville
Jane | 34 | Minneapolis
The ID numbers that have to be hardcoded are 12 and 56.
So a new text file has to be generated will contain this:
Jack | 12 | Jacksonville
Suggestions?
All ID’s matching either 12 or 56 in the file
IDFile.txtwill be outputted into a new fileMatchingIDs.txt.