第一种方法:

grep:

[root@hdp05 src]# grep -vxFf leadering.txt leaderNum.txt
1003
[root@hdp05 src]# cat leadering.txt 
1004
1007
[root@hdp05 src]# cat leaderNum.txt 
1003
1004
1007

sort:

[root@hdp05 src]# sort leaderNum.txt leadering.txt leadering.txt | uniq -u                               
1003

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-01-04
猜你喜欢
  • 2022-01-13
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
相关资源
相似解决方案