1
我想刪除所有不在我的單詞列表中的電子郵件。 例如,我有一個txt文件:記事本++刪除所有不在單詞表中的單詞
[email protected] Jonh Smith
[email protected] Chowi Gonzalle
[email protected] David Adams
[email protected] Jonhy B
[email protected] Bob Park
而且我有喜歡的電子郵件列表的txt文件:
[email protected]
[email protected]
[email protected]
[email protected]
如果以前的文件中的任何行不具備其中的任何電子郵件,刪除所有行。
我希望這些不是真正的地址 – 2013-04-27 14:38:07
我不h你可以在Notepad ++中做到這一點,但你可以使用Excel。一些'VLOOKUP'函數應該很好地實現這個技巧。 – Treb 2013-04-27 14:46:23
我不認爲Notepad ++可以做到這一點,但grep可以做到這一點。如果你的第一個列表是'file1.txt',而你的第二個列表是'file2.txt',那麼'file1.txt'中的所有行都與'file2.txt'中的行匹配:'grep -f file2 .txt file1.txt' – Alex 2013-04-27 15:40:00