This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How to increase the memory available to diff in cygwin 1.7?


-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf
Of Buchbinder, Barry (NIH/NIAID) [E]
Sent: Monday, October 26, 2009 2:49 PM
To: cygwin@cygwin.com; Kenneth Chiu
Subject: RE: How to increase the memory available to diff in cygwin 1.7?

Kenneth Chiu sent the following at Monday, October 26, 2009 2:29 PM
>
>Considering that I only want to know whether or not two files differ, 
>this should not require any significant memory usage. (In other words, 
>don't use mmap().)

If you only want to know whether or not they are identical, use cmp.

- Barry

"Get the right tool for the right job."

---------------------------

According to his original post, Kenneth was using

$ diff -rq B B2 >diff.out

The -q is the "just tell me if they're the same" option; given that it
exists at all, it is a little odd that it doesn't do the equivalent of a
cmp.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]