How to find the same words in two different text files and print those lines using bash?

后端 未结 1 1274
走了就别回头了
走了就别回头了 2020-12-16 06:54

I have two text files. One contain just one column of words. Hundreds of words. Just one word in every line. The second one contain a lot of columns a row.

I need t

相关标签:
1条回答
  • 2020-12-16 07:47

    try this:

    grep -Fwf file1 file2
    
    0 讨论(0)
提交回复
热议问题