cat file1.txt | while read LINE; do grep $LINE file2.txt; done ... but i'm open to learning by an example of a working version, make sense?
stackoverflow.com