I have a file containing UPCs like so:
I want to run a command/script that will allow me to grep each line one by one and put the results into a file. For instance:
grep line1 *.upc >> file1
grep line2 *.upc >> file1
grep line3 *.upc >> file1
Of course I can run this manually on the command line over and over again. But is there a way to set up a script that will automatically grep each line from my master file one by one?
Please feel free to send me to homework, as I know this is limited information.