Tips tagged diff


2

Tip #536   Comparing local and remote files

Suppose we have to find the differences between local file "/tmp/localfile" and remote file "/tmp/remotefile" located on remote host 123.4.5.6

This is how can do it:
Read more »

1

Tip #480   Diff Two Directories

A quick script to compare files from two directories (for example a backup and working directory).

Read more »

4

Tip #198   vimdiff and svn

vimdiff <(svn cat -r ##ver## foo) foo

will put you in the usual vimdiff output, but comparing between ##ver## and your current version of foo Read more »

8

Tip #186   Using comm

You can use diff to see the differences between two files, but it can be useful to see what is the same and more clearly how they differ. This is where comm comes in useful.

comm tells you what information is common to two lists and what information appears uniquely in one or the other.

Read more »

108

Tip #45  

multiple command output into a single program:

diff -u <(ls -c1 dir_1) <(ls -c1 dir_2)

Will show you a diff of files in the root of dir_1 and dir_2 Read more »