Tuesday, February 10, 2009

Comparing the content of two directories

Yesterday I had to compare two diretories file by file and found a handy diff command that does the job. It compares the content of two directories and prints information about files that differ and files that are present in only one of the directories.

diff -rq directory1 directory2 > diff.txt

That's cool!

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home