December 1999
Beginner
528 pages
11h 10m
English
Format:
diff options file1 file2
Options:
| -c | Produce a different output from the standard format (see below) |
| -I | Ignore character cases |
Using the files file1 and file2 from our comm example, diff will output lines that are different between two files.
$ diff file1 file2
2,3c2,3
< The game
< Boys in company C
---
> The games
> The boys in company C
Diff has reported that lines 2 and 3 are different, with the second column in line 3 not matching.
Read now
Unlock full access