小编mvr*_*sen的帖子

比较linux中的两个未排序列表,列出第二个文件中的唯一列表

我有2个文件,其中包含一个数字列表(电话号码)

我正在寻找一种在第二个文件中列出第一个文件中不存在的数字的方法

我尝试了各种方法:

comm (getting some weird sorting errors)
fgrep -v -x -f second-file.txt first-file.txt (unsure of the result, there should be more)
Run Code Online (Sandbox Code Playgroud)

谢谢

linux bash shell comparison grep

34
推荐指数
3
解决办法
7万
查看次数

标签 统计

bash ×1

comparison ×1

grep ×1

linux ×1

shell ×1