Inner join on two text files

前端 未结 5 2119
陌清茗
陌清茗 2020-11-22 05:06

Looking to perform an inner join on two different text files. Basically I\'m looking for the inner join equivalent of the GNU join program. Does such a thing exist? If not,

5条回答
  •  花落未央
    2020-11-22 05:36

    Should not the file2 contain LUA at the end?

    If yes, you can still use join:

    join -t'|' -12 <(sort -t'|' -k2 file1) file2
    

提交回复
热议问题