PATCH 將DIFF生成的補丁應用修補程序
Usage: patch [OPTION]... [ORIGFILE [PATCHFILE]]
Input options:輸入選項
-p NUM --strip=NUM 將num開頭的文件忽略 Strip NUM leading components from file names.
-F LINES --fuzz LINES 設置模糊因子lines爲行號 ??????Set the fuzz factor to LINES for inexact matching.
-l --ignore-whitespace 忽略空格 Ignore white space changes between patch and input.
-c --context 上下文格式Interpret the patch as a context difference.
-e --ed Interpret ed格式the patch as an ed script.
-n --normal 一般格式Interpret the patch as a normal difference.
-u --unified 聯合格式???Interpret the patch as a unified difference.
-N --forward ????Ignore patches that appear to be reversed or already applied.
-R --reverse ????Assume patches were created with old and new files swapped.
-i PATCHFILE --input=PATCHFILE Read patch from PATCHFILE instead of stdin.
Output options:輸出選項
-o FILE --output=FILE 輸出文件 Output patched files to FILE.
-r FILE --reject-file=FILE 不輸出file Output rejects to FILE.
-D NAME --ifdef=NAME Make merged if-then-else output using NAME.
-E --remove-empty-files 刪除空文件Remove output files that are empty after patching.
-Z --set-utc 設置已打補丁文件的時間Set times of patched files, assuming diff uses UTC (GMT).
-T --set-time Likewise, assuming local time.
Backup and version control options:備分選項
-b --backup 備分原始文件Back up the original contents of each file.
--backup-if-mismatch 備分那些補丁不完全的文件Back up if the patch does not match exactly.
--no-backup-if-mismatch ??????Back up mismatches only if otherwise requested.
-V STYLE --version-control=STYLE 用版本style控制Use STYLE version control.
STYLE is either 'simple', 'numbered', or 'existing'.
-B PREFIX --prefix=PREFIX 指定備分文件的前綴Prepend PREFIX to backup file names.
-Y PREFIX --basename-prefix=PREFIX 指定備分文件的前綴和名字Prepend PREFIX to backup file basenames.
-z SUFFIX --suffix=SUFFIX 指定備分文件的後綴Append SUFFIX to backup file names.
-g NUM --get=NUM ??????Get files from RCS or SCCS if positive; ask if negative.
Miscellaneous options:
-t --batch 不問問題,跳過錯誤的補丁Ask no questions; skip bad-Prereq patches; assume reversed.
-f --force Like -t, but ignore bad-Prereq patches, and assume unreversed.
-s --quiet --silent 不做提示除非出錯Work silently unless an error occurs.
--verbose 詳細Output extra information about the work being done.
--dry-run 幹跑???Do not actually change any files; just print what would happen.
-d DIR --directory=DIR 改變工作目錄???Change the working directory to DIR first.
--binary 二進制模式Read and write data in binary mode.
-v --version Output version info.
--help Output this help.