I have a directory containing daily cds for the month. I need to search all cds for a list of ph numbers and write result to individual files for each pattern.
Currently I'm using the below command manually for each ph number in the dir containing monthly cds and writing the result of each number to individual file.
grep -rn 111222333 /dir-containing-new-indivdual-logs/111222333.csv
I tried adding
grep -f option to specify search list but no luck as my syntax for the entire command is wrong.