UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
BOTCLEAN
ENCORE5
CLEAN
ENCORE
BOX
COMMAND
GO
diff
SYNTAX
diff [ -efbh] file1 file2
FUNCTION
diff Compares two text files, and
indicates what lines must be changed to bring
them into agreement.
SOME FLAGS/OPTIONS:
-b - Causes trailing blanks and spaces to be ignored.
-e - Produces the output suitable for the ed editor.
-h - Produces 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
from the named file from the named file
or standard input if 11 or 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 Type diff file1 file2 :
to see the lines that are different in the two files:
Please Type:
That is correct!
You've got it on the 2nd try.
Good, You Understand the Concept.
Please Type diff file1 file2
Please Type diff file1 file2
I guess I must type this for you:
FORGET1
diff file1 file2
Observe the result on the terminal!
3c3
< or standard input if
---
> 11 or standard input if
5c5
< and reproduces the
---
> 21 and reproduces the