Text diff tools: Difference between revisions

Jump to navigation Jump to search
2,407 bytes added ,  19 September 2025
m
 
(20 intermediate revisions by the same user not shown)
Line 4: Line 4:


== Free tools ==
== Free tools ==
{{Gd}} [http://winmerge.org/ WinMerge] 2.14 ([http://portableapps.com/apps/utilities/winmerge_portable portable version])
{{Gd}} [http://winmerge.org/ WinMerge] 2.14 ([http://portableapps.com/apps/utilities/winmerge_portable portable version]) on {{Win}}
* 介面: <abbr title="圖形化的使用者介面, Graphical user interface">GUI</abbr>, GNU software
* 介面: <abbr title="圖形化的使用者介面, Graphical user interface">GUI</abbr>, GNU software
* 輸出: 可輸出比較的檔案,如補綴檔案(選單: 工具 -> 產生補綴)、HTML檔案(選單: 工具 -> 產生報告)
* 輸出: 可輸出比較的檔案,如補綴檔案(選單: 工具 -> 產生補綴)、HTML檔案(選單: 工具 -> 產生報告)
Line 13: Line 13:
** 如果同一檔案,但是不同「行尾字元」(Windows: CRLF, Unix: LF, Mac: CR),則整個檔案視為不同,需要手動轉換。 [[Image:Icon exclaim.gif| ]] (選單: 檔案 --> 轉換行尾字元成... )
** 如果同一檔案,但是不同「行尾字元」(Windows: CRLF, Unix: LF, Mac: CR),則整個檔案視為不同,需要手動轉換。 [[Image:Icon exclaim.gif| ]] (選單: 檔案 --> 轉換行尾字元成... )
** 忽略以 [[Comment Syntax]] 為起首的該行的內文的差異: 可。 [http://manual.winmerge.org/Filters.html Using Filters - WinMerge 2.12 Manual]
** 忽略以 [[Comment Syntax]] 為起首的該行的內文的差異: 可。 [http://manual.winmerge.org/Filters.html Using Filters - WinMerge 2.12 Manual]
* 比較資料夾:
* 比較資料夾: 可。 {{exclaim}} 不能忽略特定規則的檔案或資料夾。
 
* 大檔案比較: 超過 900MB 檔案會當掉 {{exclaim}}


[http://www.grigsoft.com/wincmp3.htm Compare It! ] v.4
[http://www.grigsoft.com/wincmp3.htm Compare It! ] v.4
Line 21: Line 21:
* 比較萬國碼的檔案(unicode support): 可  
* 比較萬國碼的檔案(unicode support): 可  
* 比較資料夾: 可,輸出左右欄內文比較的網頁檔 (實際測試有檔案漏掉)
* 比較資料夾: 可,輸出左右欄內文比較的網頁檔 (實際測試有檔案漏掉)
* 大檔案比較:


[http://gnuwin32.sourceforge.net/packages/diffutils.htm DiffUtils for Windows] 2.8.7
[http://gnuwin32.sourceforge.net/packages/diffutils.htm DiffUtils for Windows] 2.8.7
Line 37: Line 38:
** 標示行內差異的行內文字: 可
** 標示行內差異的行內文字: 可
* 比較資料夾: 可
* 比較資料夾: 可
* 大檔案比較:


[http://www.prestosoft.com/ps.asp?page=edp_examdiff ExamDiff](TM) Version 1.8
[http://www.prestosoft.com/ps.asp?page=edp_examdiff ExamDiff](TM) Version 1.8
Line 48: Line 50:
* 比較檔案: 否
* 比較檔案: 否
* 比較資料夾: 可。[[Image:Icon exclaim.gif| ]] (1)僅比對資料夾的檔案日期 或 檔案大小 擇一。如果檔案內容相同,但檔案名稱不同,視為不同。 (2)如果子資料夾有不同檔案,不會在子資料夾標示上顏色。
* 比較資料夾: 可。[[Image:Icon exclaim.gif| ]] (1)僅比對資料夾的檔案日期 或 檔案大小 擇一。如果檔案內容相同,但檔案名稱不同,視為不同。 (2)如果子資料夾有不同檔案,不會在子資料夾標示上顏色。
* 大檔案比較:


[http://meld.sourceforge.net/ Meld Diff Viewer] for *unix like OS
[http://meld.sourceforge.net/ Meld Diff Viewer] for *unix like OS
Line 69: Line 72:
* 比較檔案: 可比較萬國碼的檔案。 {{exclaim}} 中文與數字夾雜時,數字位置有跑掉
* 比較檔案: 可比較萬國碼的檔案。 {{exclaim}} 中文與數字夾雜時,數字位置有跑掉
* 比較資料夾: 可
* 比較資料夾: 可
* 大檔案比較:


[http://www.comparemyfiles.com/default.aspx Free Online File Compare Utility] (access: 20090127)
[https://itunes.apple.com/us/app/compare-folders/id816042486?mt=12 Compare Folders on the Mac App Store] Version: 1.1.9 on {{Mac}}
* 介面: GUI 線上免費服務
* 顏色標記差異處, '''不可'''輸出比較檔案, 中文介紹: [http://iwanthotnews.blogspot.com/2009/01/comparemyfilescom.html CompareMyFiles.com 線上檔案比對工具-哈燒部落 I Want Hot News]
* 中文UTF-8編碼的純文字檔ok, xml檔則變成亂碼
 
[https://itunes.apple.com/us/app/compare-folders/id816042486?mt=12 Compare Folders on the Mac App Store] Version: 1.1.9
* 介面: GUI , shareware ([http://www.scootersoftware.com/vbulletin/showthread.php?t=3094 Using BC with Command line scripting - Scooter Forums])
* 介面: GUI , shareware ([http://www.scootersoftware.com/vbulletin/showthread.php?t=3094 Using BC with Command line scripting - Scooter Forums])
* 檔案比較: 無,需要額外付費購買 File Checksums
* 檔案比較: 無,需要額外付費購買 File Checksums
* 輸出:  
* 輸出:  
* 比較資料夾: 可 {{exclaim}} 資料夾內的檔案如果內容相同、時間不同,會視為兩個不同資料夾。
* 比較資料夾: 可 {{exclaim}} 資料夾內的檔案如果內容相同、時間不同,會視為兩個不同資料夾。
* OS: {{Mac}}
* 大檔案比較:


[http://www.perforce.com/product/components/perforce-visual-merge-and-diff-tools Visual Merge and Diff Tools: P4Merge | Perforce] v. 2014.1/827578 for {{Mac}}
[http://www.perforce.com/product/components/perforce-visual-merge-and-diff-tools Visual Merge and Diff Tools: P4Merge | Perforce] v. 2014.1/827578 for {{Mac}}
* 中文 ok
* 中文 ok
[https://code.visualstudio.com/ Visual Studio Code - Code Editing. Redefined] for {{Win}} & {{Mac}}
* 授權:[https://code.visualstudio.com/License License - Visual Studio Code] 可商業使用,但需要注意 Visual Studio Code 中包含的某些第三方元件可能有不同的法律聲明和協議,您需要遵守這些元件的許可條款。 {{exclaim}}
* 教學:[https://mnya.tw/cc/word/2391.html VS Code 必學!檔案總管直接比對兩檔案差異超方便 - 萌芽綜合天地 - 萌芽網頁]
[https://www.perforce.com/products/helix-core-apps/merge-diff-tool-p4merge Diff Tools and P4 Merge | Perforce Software] on {{Win}}, {{Mac}} & {{Linux}}
* 介面: <abbr title="圖形化的使用者介面, Graphical user interface">GUI</abbr>, GNU software
* 輸出: 否
* 比較檔案
** 比較萬國碼的檔案(unicode support): 可
** 標示行內差異的行內文字: 可
** 忽略換行符號的差異: 可,(選單: File -> Comparison Method -> Ignore Line Ending Differences)
** 忽略空白符號的差異: 可,(選單: File -> Comparison Method -> Ignore Line Ending and All White Space Differences)


[http://www.sourcegear.com/diffmerge/ SourceGear | DiffMerge] v. 4.2.0.697 for {{Win}}, {{Mac}}
[http://www.sourcegear.com/diffmerge/ SourceGear | DiffMerge] v. 4.2.0.697 for {{Win}}, {{Mac}}
* {{exclaim}} 無法選擇編碼,中文UTF-8編碼的純文字檔變成亂碼 ({{Mac}} 上測試)
* {{exclaim}} 無法選擇編碼,中文UTF-8編碼的純文字檔變成亂碼 ({{Mac}} 上測試)


[https://www.computerhope.com/unix/udiff.htm Linux diff command]: [http://jashliao.pixnet.net/blog/post/164675130-%E6%AF%8F%E5%A4%A9%E4%B8%80%E5%80%8Blinux%E6%8C%87%E4%BB%A4--diff-%E6%8C%87%E4%BB%A4(%E6%AF%94%E8%BC%83%E6%96%87%E4%BB%B6%E5%85%A7%E5%AE%B9%E7%9A%84 每天一個Linux指令- diff 指令(比較文件內容的差異 工具) @ jashliao的部落格 :: 痞客邦 PIXNET ::]
* 介面: console
* 輸出:
* unicode support: ok
* 大檔案比較: 超過 900MB 會沒有反應一陣子,超過數分鐘後手動中斷
== Online tools ==


[https://www.diffnow.com/ DiffNow - Compare files online. Powered by ExamDiff Pro.] 線上服務。介紹: [https://free.com.tw/diffnow/ DiffNow 線上文字檔/原始碼差異比較工具] {{access | date = 2016-03-31}}
[https://www.diffnow.com/ DiffNow - Compare files online. Powered by ExamDiff Pro.] 線上服務。介紹: [https://free.com.tw/diffnow/ DiffNow 線上文字檔/原始碼差異比較工具] {{access | date = 2016-03-31}}
Line 93: Line 112:
* 輸出: html
* 輸出: html
* unicode support: ?
* unicode support: ?
[https://diffsuite.com/text-compare-plus/ Text Compare Plus: Free Diff & Merge Tool Online]
* 介面: GUI
* 輸出:
* unicode support:


== Shareware ==
== Shareware ==
[http://www.scootersoftware.com/ Beyond Compare] v3.0 - The file compare, folder compare and remote directory compare utility from Scooter Software, ShareWare
''$'' [http://www.scootersoftware.com/ Beyond Compare] v5 - The file compare, folder compare, and remote directory compare utility from Scooter Software, ShareWare on {{Win}}, {{Mac}} & {{Linux}}
* 介面: GUI , shareware ([http://www.scootersoftware.com/vbulletin/showthread.php?t=3094 Using BC with Command line scripting - Scooter Forums])
* 介面: GUI , shareware ([http://www.scootersoftware.com/vbulletin/showthread.php?t=3094 Using BC with Command line scripting - Scooter Forums])
* 輸出: 可輸出比較檔案 (選單列: Session --> Text compare report) Unicode 檔案ok
* 輸出: 可輸出比較檔案 (選單列: Session --> Text compare report) Unicode 檔案ok
* 比較資料夾: 可 {{exclaim}} 資料夾內的檔案如果內容相同、時間不同,會視為兩個不同資料夾。
* 比較資料夾: 可 (1) {{Gd}} [https://www.scootersoftware.com/v4help/index.html?dir_filtering_the_view.html Filtering the Folder Compare View] (2) {{exclaim}} 資料夾內的檔案如果內容相同、時間不同,會視為兩個不同資料夾。 (3) {{Gd}} 可設定篩選器 (filter) 過濾特定名稱規則的檔案或資料夾
* OS: {{Win}} & {{Mac}}
* 大檔案比較: 超過 5MB 的檔案反應速度快 {{Gd}}


[http://www.ghisler.com/ Total Commander] 7.56a
''$'' [http://www.ghisler.com/ Total Commander] 7.56a on {{Win}}
* 介面: GUI  
* 介面: GUI  
* 輸出: 顏色標記差異處, '''不可'''輸出比較檔案
* 輸出: 顏色標記差異處, '''不可'''輸出比較檔案
Line 108: Line 132:
** 標示行內差異的行內文字: 否
** 標示行內差異的行內文字: 否
* 比較資料夾: 可 (選單列: Commands --> Synchronize Dirs 再點選Compare, 建議勾選by content)
* 比較資料夾: 可 (選單列: Commands --> Synchronize Dirs 再點選Compare, 建議勾選by content)
* OS: {{Win}}
* 大檔案比較:


[http://www.ultraedit.com/products/ultracompare.html UltraCompare] v.8
''$'' [http://www.ultraedit.com/products/ultracompare.html UltraCompare] v.8 on {{Win}} & {{Mac}}
* 介面: <abbr title="圖形化的使用者介面, Graphical user interface">GUI</abbr>, shareware
* 介面: <abbr title="圖形化的使用者介面, Graphical user interface">GUI</abbr>, shareware
* 輸出: 顏色標記差異處, '''不可'''輸出比較檔案
* 輸出: 顏色標記差異處, '''不可'''輸出比較檔案
Line 117: Line 141:
** 標示行內差異的行內文字: 可 {{Gd}}
** 標示行內差異的行內文字: 可 {{Gd}}
* 比較資料夾: 可
* 比較資料夾: 可
* OS: {{Win}} & {{Mac}}
* 大檔案比較:


[http://cmpp.coodesoft.com/ Compare++ - Structured file compare and merge tool] v.1.7.2.x
[http://cmpp.coodesoft.com/ Compare++ - Structured file compare and merge tool] v.1.7.2.x on {{Win}}
* 介面: <abbr title="圖形化的使用者介面, Graphical user interface">GUI</abbr>
* 介面: <abbr title="圖形化的使用者介面, Graphical user interface">GUI</abbr>
* 輸出: 可輸出比較檔案  (選單列: File --> Report)
* 輸出: 可輸出比較檔案  (選單列: File --> Report)
Line 126: Line 150:
** 標示行內差異的行內文字: 可 {{Gd}}
** 標示行內差異的行內文字: 可 {{Gd}}
* 比較資料夾: 可
* 比較資料夾: 可
* 大檔案比較:
* OS: {{Win}}
* OS: {{Win}}
''$'' [http://www.kaleidoscopeapp.com/ Kaleidoscope — File comparison for Mac] 免費試用 14 天 on {{Mac}}
* 介面: GUI
* 輸出: 無
* 比較資料夾: 可 {{Gd}} 資料夾內的檔案如果內容相同、時間不同,會視為相同 。
* 大檔案比較: 超過 5MB 的檔案比較超過一分鐘 {{exclaim}}


Other shareware:  
Other shareware:  
* [http://www.araxis.com/merge/index.html Araxis Merge] for OS: {{Win}} & {{Mac}}
* [http://www.araxis.com/merge/index.html Araxis Merge] for OS: {{Win}} & {{Mac}}
* [http://www.prestosoft.com/edp_examdiffpro.asp ExamDiff Pro] for OS: {{Win}}
* [http://www.prestosoft.com/edp_examdiffpro.asp ExamDiff Pro] for OS: {{Win}}
* [http://www.kaleidoscopeapp.com/ Kaleidoscope — File comparison for Mac] for OS: {{Mac}}


== Dropbox + diff tools ==
== Dropbox + diff tools ==
Line 167: Line 197:




== further reading ==
== Further reading ==
* [http://en.wikipedia.org/wiki/Comparison_of_file_comparison_tools Comparison of file comparison tools]
* [http://en.wikipedia.org/wiki/Comparison_of_file_comparison_tools Comparison of file comparison tools]
* [http://zh-tw.w3support.net/index.php?db=so&id=96051 最好的文件比較工具]
* [http://zh-tw.w3support.net/index.php?db=so&id=96051 最好的文件比較工具]
* [https://en.wikipedia.org/wiki/Diff_utility diff utility - Wikipedia]
* [https://en.wikipedia.org/wiki/Diff_utility diff utility - Wikipedia]


== references ==
其他類似工具
* [https://freefilesync.org/ FreeFileSync: Open Source File Synchronization & Backup Software] for {{Win}}, {{Mac}} & {{Linux}}
* [[Comparing word documents]]
 
== References ==
<references/>
<references/>


[[Category:Software]]
[[Category:Software]]
[[Category:Programming]]
[[Category:Programming]]

Navigation menu