GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — linux-command/command/diff3.md at master · ItJava/linux-command

Expand file tree

/

diff3.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
35 lines (24 loc) · 1.3 KB
/

diff3.md

Copy path

File metadata and controls

35 lines (24 loc) · 1.3 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

diff3

比较3个文件不同的地方

补充说明

diff3命令 用于比较3个文件,将3个文件的不同的地方显示到标准输出。

语法

diff3(选项)(参数)

选项

-a:把所有的文件都当做文本文件按照行为单位进行比较,即给定的文件不是文本文件;
-A:合并第2个文件和第3个文件之间的不同到第1个文件中,有冲突内容用括号括起来;
-B:与选项“-A”功能相同,但是不显示冲突的内容;
-e/--ed:生成一个“-ed”脚本,用于将第2个文件和第3个文件之间的不同合并到第1个文件中;
--easy-only:除了不显示互相重叠的变化,与选项“-e”的功能相同;
-i:为了和system V系统兼容,在“ed”脚本的最后生成“w”和“q”命令。此选项必须和选项“-AeExX3”连用,但是不能和“-m”连用;
--initial-tab:在正常格式的行的文本前,输出一个TAB字符而非两个空白字符。此选项将导致在行中TAB字符的对齐方式看上去规范。

参数

  • 文件1:指定要比较的第1个文件;
  • 文件2:指定要比较的第2个文件;
  • 文件3:指定要比较的第3个文件。
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.