Re: diff files matching a pattern
On Sun, Feb 24, 2008 at 03:12:34PM -0500, Kamaraju S Kusumanchi wrote:
> Tzafrir Cohen wrote:
> >
> > LC_ALL=C diff -r dir1 dir2 | grep -v ^Only
> >
> > The size really doesn't matter for those extra large files.
> >
>
> This works only if the extra 950 files are in just one directory. If the
> extra files are there in both the directories, then it does not make sense
> to compare all the 1000 files since I am interested only in the diff of 50
> files.
For this *not* to work, you have to use the option -N (or something
comparable) to diff.
--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend
Reply to: