I have two fil开发者_开发百科es.
One has a list of words. The other has a large list of words that includes all words in the original file. How can I write a script to search all words in list 1 and get the line on list 2 with that exact word (list 2 has the words plus additional information) and write them to a third file?
I've been searching online but couldn't find a solution.
I would look at sed, awk or grep one of those tools should be the right direction...
精彩评论