tags:

views:

393

answers:

1

Is it possible using any sort of diff utility to diff based on filename only, ignoring all folders and subfolders?

So if I have

/folder_1/a/1243.txt

and

/folder_2/b/1243.txt

or

/folder_2/1234.txt

It would match the files when doing a diff between folder_1 and folder_2?

A: 

Are you trying to do a diff on lists of filenames, to see which filenames one folder contains that the other doesn't? If so, do find folder_1 -type f in Linux or dir /s /b /ad folder_1 in DOS and pipe the output into text files, then diff the contents of the text files.

In Vim I'd skip the temp files, and do :.!find folder_1 -type f in one window, :.!find folder_2 -type f in second window, then :windo diffthis to diff them.

Brian Carper