blob: 5cd4f7c3d54ae829e6d3438411dcd360bfe0acad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#print
Another very useful command is the command
diff x y
which compares two files. It will not print
any output if the two files are the same, but
if the files are different it will print
out the lines that are changed in the two files,
indicating the lines from the first file (x) by a leading "<"
and the lines from the second file (y) by a leading ">".
There are two files in this directory named "old" and "new".
Why don't you first print both files, and then
try using "diff" to compare them? Suppose the files
were hundreds of lines long, and you needed to know
the single difference - do you see how valuable "diff" can be?
As evidence that you did at least half of this,
type "answer word" where "word" is the word added to the
second file.
#create new
Four score and seven
years ago our fathers
brought forth on this
continent a new nation,
conceived in liberty
and dedicated to the
proposition that all
men are created equal.
#create old
Four score and seven
years ago our fathers
brought forth on this
continent a new nation,
conceived in liberty
and dedicated the
proposition that all
men are created equal.
#copyin
#user
#uncopyin
#match to
#log
#next
13.1a
|