Trying to grep with patterns from one file and use them on a big one file and then save results to files with pattern name and grep output inside, does not work, empty files created.
What I am doing wrong?
while read p; do
grep $p big.txt >>$p
done < patterns.txt