UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
BOTCLEAN
ENCORE5
CLEAN
ENCORE
BOX
COMMAND
GO
diff
SYNTAX
diff [-ebh] file1 file2
FUNCTION
diff compares two text files and indicates
what lines must be changed to make
them the same.
SOME OPTIONS:
-b - causes trailing blanks and spaces to be ignored
-e - produces output suitable for the ed editor
-h - produces a fast, half-hearted job
Let us use the diff command on the two files above.
file1 file2
nl reads lines from nl reads lines from
the named file or the named file or
standard input if 11 standard input if
no file is named, no file is named,
and reproduces the 21 and reproduces the
lines with numbers lines with numbers
on the standard on the standard
output. output.
Please enter the diff command to see the
lines that are different in the two files above:
Enter here:
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type diff to compare file1 and file2
Please type diff file1 file2
I guess I must type this for you:
FORGET1
diff file1 file2
Observe the result above.
3c3
< or standard input if
---
> 11 or standard input if
5c5
< and reproduces the
---
> 21 and reproduces the