Skip to content

This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!


Diff


Table of contents

TODO

  • Diff two directories:

    $ diff -ENwbur ./dir1/ ./dir2/ > diff.log
    

  • Diff two directories, ignoring contents of .svn and .git directories, but also individual files named *.zip/, *.gz/, etc:

    $ diff -ENwbur
       --exclude="*~" \
       --exclude=".svn" \
       --exclude=".git" \
       --exclude="*.zip*" \
       --exclude="*.gz" \
       --exclude="*.tar" \
       ./dir1/ ./dir2/ > diff.log
    


If this cheat sheet has been useful to you, then please consider leaving a star here.