The diff command



If you're new here, you may want to subscribe to my RSS feed.

The diff command is a very useful command to see the differences between two files. An example of this command would be

diff file1.txt file2.txt

It takes file2.txt and compares it to file1.txt and displays the differences that are in file2.txt. You may also want to use the -b options in the command because that will allow it to ignore differences in white space. This command is very useful in programming when you have a backup version of a script that you just modified. If the script no longer works it can help you track down bugs, by looking at backup version of the script that does work.

4 Responses to “The diff command”

  1. James Says:

    Hi, I found your blog on this new directory of WordPress Blogs at blackhatbootcamp.com/listofwordpressblogs. I dont know how your blog came up, must have been a typo, i duno. Anyways, I just clicked it and here I am. Your blog looks good. Have a nice day. James.

  2. Jon Says:

    Hello
    Thanks for the help. I noticed that the WordPress - I guess - is scrambling text in your blog for the apostrophe:
    [Mac Chrome Isn’t Close To Being Done; But There’s Progress]
    I think until the character code is sent properly by WordPress, you can avoid this by just not using the ‘. Isnt this a better looking appearance than Isn’t Dont you agree?

    I found this discussion online: http://wordpress.org/support/topic/189560

    Jon

  3. Jon Says:

    PS. In the reply I sent, the &#8217 is rendered as an apostrophe. I don’t know how to submit a screenshop of this error to the reply box. Sorry. On my screen - in the right sidebar - the word “Isn’t” looks like Isn’t

  4. Jon Says:

    PPS. Ahhhh Even when I type it it is converted to an apostrophe! Oh well. I typed (not spaced of course) I s n & # 8 2 1 7 : t Which is the way it is on my screen.

Leave a Reply