Posted on 2014-04-23
I need a unix script which can take as input a list of invoice numbers in a text file and do a search in a particular directory and find the file containing that invoice number.
It should then copy this particular file found into a different directory. Please note I only need to copy this file to a different directory and not move it.
So if there are 100 invoice numbers in the text file then this script should be able to copy 100 files to the destination directory. I can enter the invoice numbers in the text file in any manner.
Thanks for your help.