diff: Alternative formats


show more diff: Alternative formats provides you with in-depth training on IT. Taught by Kevin Skoglund as part of the Unix for Mac OS X Users show less
please wait ...

diff: Alternative formats

In this movie we're going to learn to control the format the DIFF uses for output. We can have an output that's something called copied context, which it would be c option. We can use the u option for unified context, and then we can have y for side-by-side comparison. There's a q option that will tell us only whether the two files are different. It won't report what that actual changes were to us. It'll just give us a single line saying yes, the two files are different. There are also a couple of other output formats but I think these are going to be the most common and the most useful for you. Let's take a look at them. So let me just clear my screen and let's do that same thing but now let's pass in that -c for copied context.

Now notice what it does is it gives us the whole first section, lines 1 through 11. It lets you know that here at the beginning. And here it is. That's everything that was in the first document. And then below that is everything...

diff: Alternative formats
Video duration: 4m 30s 6h 35m Beginner

Viewers:

diff: Alternative formats provides you with in-depth training on IT. Taught by Kevin Skoglund as part of the Unix for Mac OS X Users

Subject:
IT
Software:
Mac OS X Unix
Author:
please wait ...