我想要一些腳本或程序來比較文本文檔,並在兩個文本中找到相同的電子郵件地址,並創建一個新文件,其中僅出現在兩個文件中的一箇中的電子郵件地址(在這兩個文件中出現的文件已經在這個新的文本文件中被刪除)。在txt文件中比較和刪除
我試過各種比較程序,但他們考慮到位置和字體等,等等。我的編程不足以改變設置(如果這是可能的話)。也許在Applescript中有什麼?我使用的是Mac ...
例
Text1:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected] <--(yes, that's a duplicate... I would like to have them deleted as well)
Text2:
[email protected]
[email protected]
[email protected]
[email protected]
Text3:
[email protected]
[email protected]
我用我給出的例子作爲一個測試,雖然它做了一些它不做我想要的東西。 這是結果: [email protected] [email protected] [email protected] [email protected] [email protected] 感謝您的快速回復。我希望解決方案接近! – Mauritz
也許我的例子不清楚......我想比較文本1和文本2,以便結果會像文本3 – Mauritz