Well, ok. I am a newb at this but here it goes:
Code:
while read line; do find . -name $line *.txt < matchb.txt; done
That just runs, never returns anything. I was trying to just list the files before adding the copying funciton.
Code:
find . -maxdepth 1 -type f -exec grep -f matchb.txt '{}' ';' -exec cp '{}' files/ ';'
This is as far as I've come, but this just creates a file (matchb.txt) that lists the files I'm trying to copy.
Everything else has been a variation of the above to lines.