【发布时间】:2017-02-24 14:20:31
【问题描述】:
好的,基本上我有一个电子邮件列表
EMAILS.TXT
然后我还有一堆 .txt 文件,其中包含电子邮件:电话号码:姓名
Compiled1.txt
Compiled2.txt
Compiled3.txt
...
我可以使用 grep 或 gawk 来搜索包含已编译 1、已编译 2 的文件夹,以查看行是否包含来自 .txt 文件的电子邮件?
例子
email.txt Contains " example@example.com " & " example1@example1.com "
文件夹包含
Compiled1.txt & Compiled2.txt have both these lines
如果 Cygwin/Gnuwin 包含从 emails.txt 中指定的行,则从compiled1 和compiled2 输出行
Output > example@example.com:000000:ExampleUser
example1@example1.com:00010101:ExampleUser2
...
【问题讨论】: