【发布时间】:2021-08-23 10:25:09
【问题描述】:
我正在尝试找出 (grep) 文件中的哪些模式没有出现在日志文件中。
我有文件input.txt,其中包含:
00123
00124
00125
00126
和日志文件20210716.log
00123
a
b
c
d
00125
00126
xy
z
...
(tons of text)
...
00127
当在输出中使用grep -f input.txt 20210716.log 时,我得到:
00123
00125
00126
如何从input.txt 输出未出现在日志文件中的模式?,所以我想得到:
00124
【问题讨论】: