Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
bdiff(1)			  User Commands 			bdiff(1)

NAME
     bdiff - big diff

SYNOPSIS
     bdiff filename1 filename2 [n] [-s]

DESCRIPTION
     bdiff  is	used  in a manner analogous to diff to find which lines in file-
     name1 and filename2 must be changed to bring the files into agreement.  Its
     purpose is to allow processing of files too large for diff.   If  filename1
     (filename2) is -, the standard input is read.

     bdiff  ignores  lines common to the beginning of both files, splits the re-
     mainder of each file into n-line segments, and invokes diff on  correspond-
     ing  segments.   If both optional arguments are specified, they must appear
     in the order indicated above.

     The output of bdiff is exactly that of diff, with line numbers adjusted  to
     account for the segmenting of the files (that is, to make it look as if the
     files  had  been  processed whole). Note:	Because of the segmenting of the
     files, bdiff does not necessarily find a smallest sufficient  set	of  file
     differences.

OPTIONS
     n	    The  number of line segments. The value of n is 3500 by default.  If
	    the optional third argument is given and it is numeric, it	is  used
	    as	the  value  for  n.   This  is	useful	in  those cases in which
	    3500-line segments are too large for diff, causing it to fail.

     -s     Specifies that no diagnostics are to be printed by bdiff (silent op-
	    tion). Note:  However, this does not  suppress  possible  diagnostic
	    messages from diff, which bdiff calls.

USAGE
     See  largefile(7) for the description of the behavior of bdiff when encoun-
     tering files greater than or equal to 2 Gbyte (2^31 bytes).

FILES
     /tmp/bd?????

ATTRIBUTES
     See attributes(7) for descriptions of the following attributes:

     +------------------------------+-----------------------------+
     |	     ATTRIBUTE TYPE	    |	   ATTRIBUTE VALUE	  |
     +------------------------------+-----------------------------+
     | Availability		    |SUNWesu			  |
     +------------------------------+-----------------------------+
     | CSI			    |enabled			  |
     +------------------------------+-----------------------------+

SEE ALSO
     diff(1), attributes(7), largefile(7)

DIAGNOSTICS
     Use help for explanations.

NOTES
     This version of bdiff(1) supports lines of arbitrary length and is able  to
     deal  with  binary content (null bytes) in the files. It thus calls diff(1)
     with the -a option.  The well known main caller of bdiff(1), which is sccs-
     delta(1), checks for binary content before calling bdiff(1).  Previous ver-
     sions of bdiff(1) did not check for binary content and  silently  discarded
     null bytes.

BUGS
     None currently known.

     Mail  bugs  and  suggestions  to  schilytools@mlists.in-berlin.de or open a
     ticket at https://codeberg.org/schilytools/schilytools/issues.

     The mailing list archive may be found at:

     https://mlists.in-berlin.de/mailman/listinfo/schilytools-mlists.in-berlin.de.

AUTHORS
     The bdiff(1) program was initially written at Bell Labs  in  the  1970s  as
     part  of  SCCS.  The SVr4 release was written by various authors at AT&T in
     1989.  The bdiff(1) program was later maintained by various people at  AT&T
     and Sun Microsystems. Since 2006, it has been maintained by Joerg Schilling
     and is now maintained by the schilytools authors.

SOURCE DOWNLOAD
     The  source code for sccs is included in the schilytools project and may be
     retrieved from the schilytools project at Codeberg at

     https://codeberg.org/schilytools/schilytools.

     The download directory is

     https://codeberg.org/schilytools/schilytools/releases.

SunOS 5.11			   2022/10/06				bdiff(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=bdiff&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>

home | help