⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 diff.1

📁 UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱昂氏unix源代码分析都是用的该版
💻 1
字号:
.th DIFF I 5/15/74.sh NAMEdiff \*- differential file comparator.sh SYNOPSIS.bd diff[.bd \*-] name1 name2.sh DESCRIPTION.it Difftells what lines must be changed in two files to bring theminto agreement.The normal output contains lines of these forms:.s3.lp +5 0.it n1a.it n3,n4.br.it n1,n2d.it n3.br.it n1,n2c.it n3,n4.s3.i0These lines resemble.it edcommands to convert file.it name1into file.it name2.The numbers after the letters pertain to file.it name2.In fact, by exchanging `a' for `d' and reading backwardone may ascertain equally how to convert file .it name2into.it name1.As in .it ed,identical pairs where.it n1=.it n2or.it n3=.it n4are abbreviated as a single number..s3Following each of these lines come all the lines that areaffected in the first file flagged by `*', then all the lines that are affected in the second fileflagged by `\fB.\fR'..s3Under the \fB\*-\fR option,the output of.it diffis a script of.it "a, c"and .it dcommands for the editor.it ed,which will change the contents of the first fileinto the contents of the second.In this connection, the following shell program may help maintainmultiple versions of a file.Only an ancestral file ($1) and a chain of version-to-version.it edscripts ($2,$3,...) made by.it diffneed be on hand.A `latest version' appears onthe standard output..s3.lp +5 0.tr ||(cat $2 ... $9; echo "1,$p") \*v ed \*- $1.s3.i0Except for occasional `jackpots',.it difffinds a smallest sufficient set of filedifferences..sh "SEE ALSO"cmp (I), comm (I), ed (I).sh DIAGNOSTICS`jackpot' \*- To speed things up, the program uses hashing.You have stumbled on a case where there is a chance thatthis has resulted ina difference being called where none actually existed.Sometimes reversing the order of files will make ajackpot go away..sh BUGSEditing scripts produced under the\fB\*-\fR option are naive aboutcreating lines consisting of a single `\fB.\fR'.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -