bdiff(1)
π bdiff(1) β big diff, bestie β¨
okay so this is a User Commands icon and we are about to get into it. bdiff is literally the big-diff girlie and she's here to help π
β¨ NAME β¨
bdiff β big diff π«Ά (yes that's the whole thing, she's concise)
πΈ SYNOPSIS πΈ
bdiff filename1 filename2 [n] [-s]
π¦ DESCRIPTION π¦
okay so bestie, bdiff works basically like diff does β you use it to find which lines in filename1 and filename2 have to be changed to bring the two files into agreement. same energy, different scale π
her whole purpose in life is letting you process files that are way too big for diff to handle. main character energy honestly π
if filename1 (or filename2) is β, then the standard input gets read. yep, the dash. she'll read from stdin, no cap.
here's the tea on how she actually works π₯ β bdiff ignores the lines that are common to the beginning of both files, then splits the rest of each file into n-line segments, and then invokes diff on the corresponding segments. so it's like, chunked diffing. iconic.
if you give her both optional arguments, they have to appear in the order indicated above. not negotiable, that's just the vibe check π
the output of bdiff is exactly that of diff, except the line numbers get adjusted to account for the segmenting of the files β that is, to make it look as if the files had been processed whole. so it doesn't look like a chopped-up mess, she makes it look seamless β¨
Note: because of the segmenting of the files, bdiff does not necessarily find a smallest sufficient set of file differences. like, she'll find you differences, but not always the minimal set. so don't come for her π
π OPTIONS π
nβ the number of line segments. the value of n is3500by default. if the optional third argument is given and it's numeric, it gets used as the value for n. this is genuinely useful in those cases where 3500-line segments are too large fordiff, which makesdifffail β so you shrink the chunks and she slays π-sβ specifies that no diagnostics are to be printed bybdiff(the silent option, she's being quiet, we love a low-key moment π)
Note: however, this does not suppress possible diagnostic messages fromdiff, whichbdiffcalls. sodiffcan still be loud. not her fault, she's just the middleman π
π USAGE π
see largefile(7) for the description of the behavior of bdiff when encountering files greater than or equal to 2 Gbyte (2^31 bytes). big files, big vibes, go read that page bestie β
π FILES π
/tmp/bd?????β her temp files live here, cute little?????pattern, very mystery-girl of her π§
π ATTRIBUTES π
see attributes(7) for descriptions of the following attributes:
- Availability β
SUNWesu - CSI β
enabled
π SEE ALSO π
diff(1), attributes(7), largefile(7) β go read 'em, they're the supporting cast π«Ά
π DIAGNOSTICS π
use help for explanations. that's it, that's the whole section π
πΈ NOTES πΈ
this version of bdiff(1) supports lines of arbitrary length and is able to deal with binary content (null bytes) in the files. so she's not scared of your weird data, she ate π₯
because of that, she calls diff(1) with the -a option. periodt.
the well known main caller of bdiff(1), which is sccs-delta(1), checks for binary content before calling bdiff(1). so that one's doing her homework first β¨
previous versions of bdiff(1) did not check for binary content and silently discarded null bytes. yeah. they were just throwing away your nulls without telling you π not the move. we've grown since then π
π¦ BUGS π¦
none currently known. she's flawless, allegedly πβ¨
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
(links are literally right there, go off π«Ά)
π§ 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. multiple eras, multiple icons, all contributing to the same girlie π
β 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
okay that's the whole page bestie, you're officially a bdiff expert now, no cap π
β¨
sign-off time: this little masterpiece comes to you courtesy of SunOS 5.11, dated 2022/10/06 β bdiff(1), out. mwah ππ
π¦ where this page comes from
- opensuse-leap 16.0: sccs 2022.10.16-160000.2.2 Β· CDDL-1.0
- opensuse-leap 16.0: sccs 2022.10.16-160000.2.2 Β· CDDL-1.0
- opensuse-leap 16.0: sccs 2022.10.16-160000.2.2 Β· CDDL-1.0
- opensuse-leap 16.0: sccs 2022.10.16-160000.2.2 Β· CDDL-1.0
- Copyright (c) 2013-2018 J. Schilling
- Copyright 1989 AT&T
- Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms