How do I do a one way diff in Linux?
How do I do a one way diff in Linux? Normal behavior of diff: Normally, diff will tell you all the differences between a two files. For example, it will tell you anything that is in file A that is not in file B, and will also tell you everything that is in file B, but not in file A. For example: File A contains: cat good dog one two File B contains: cat some garbage one a whole bunch of garbage something I don't want to know If I do a regular diff as follows: diff A B the output would be something like: 2c2 < good dog --- > some garbage 4c4,5 < two --- > a whole bunch of garbage > something I