diff, fc: add traditional Chinese translation (#9189)

pull/1/head
Wtz 2022-10-21 10:39:07 +08:00 committed by GitHub
parent a2326e8039
commit 6731954ab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,32 @@
# diff
> 比較兩個檔案或目錄間的差異。
> 更多資訊:<https://man7.org/linux/man-pages/man1/diff.1.html>.
- 比較兩檔案,列出 `舊檔案` 相異於 `新檔案` 而需更改之處,以讓兩者相同:
`diff {{舊檔案}} {{新檔案}}`
- 忽略空格下,比較兩檔案:
`diff --ignore-all-space {{舊檔案}} {{新檔案}}`
- 比較兩檔案,並排顯示差異:
`diff --side-by-side {{舊檔案}} {{新檔案}}`
- 比較兩檔案,並以統一格式 (unified format) 顯示差異(為 `git diff` 預設格式):
`diff --unified {{舊檔案}} {{新檔案}}`
- 遞迴比較兩目錄,顯示相異的檔名或目錄名,與檔案內更動:
`diff --recursive {{舊目錄}} {{新目錄}}`
- 比較兩目錄,只顯示相異檔案的檔名:
`diff --recursive --brief {{舊目錄}} {{新目錄}}`
- 由兩個文字檔之間差異建立一個補丁 (patch) 檔給 Git不存在的檔案視為空白文件
`diff --text --unified --new-file {{舊檔案}} {{新檔案}} > {{diff.patch}}`

33
pages.zh_TW/windows/fc.md Normal file
View File

@ -0,0 +1,33 @@
# fc
> 比較兩個檔案或一組檔案間的差異。
> 以萬用字元 (*) 比較一組檔案。
> 更多資訊:<https://learn.microsoft.com/windows-server/administration/windows-commands/fc>.
- 比較兩個指定檔案:
`fc {{檔案/完整/路徑1}} {{檔案/完整/路徑2}}`
- 比較檔案且忽略大小寫差異:
`fc /c {{檔案/完整/路徑1}} {{檔案/完整/路徑2}}`
- 以 Unicode 文字檔方式比較檔案:
`fc /u {{檔案/完整/路徑1}} {{檔案/完整/路徑2}}`
- 以 ASCII 文字形式比較檔案:
`fc /l {{檔案/完整/路徑1}} {{檔案/完整/路徑2}}`
- 以二進位方式比較檔案:
`fc /b {{檔案/完整/路徑1}} {{檔案/完整/路徑2}}`
- 禁止將定位字元 (tab) 展開成空格:
`fc /t {{檔案/完整/路徑1}} {{檔案/完整/路徑2}}`
- 壓縮空白字元(定位字元與空格)後,再進行比較:
`fc /w {{檔案/完整/路徑1}} {{檔案/完整/路徑2}}`