UDIFF(1)
π UDIFF(1) β bestie, your files are gonna get compared π
Okay so this is UDIFF(1) from Schily's USER COMMANDS, and itβs literally all about showing where two files differ. No cap, itβs giving classic diff energy with its own little vibe. π¦
β¨ NAME β¨
udiff, fdiff, fsdiff β shows where two files differ.
πΈ SYNOPSIS πΈ
udiff [ options ] file1 file2
fdiff [ options ] file1 file2
fsdiff [ options ] file1 file2
π DESCRIPTION π
udiff shows what lines differ between two files. It supports arbitrary line lengths and treats binary files the same as text files. π
It does not support many options or features, and there is no best match resync mechanism, but the output is typically identical to the output from the classical UNIX diff(1).
If called as fdiff or fsdiff, the POSIX output style is used and the nmatch=# resync default value is set to 1 line. Important detail, bestie.
If called as fsdiff, the exit code is compatible to bdiff(1) and differences in the files still result in a zero exit code; only an error causes a non-zero exit code. This allows fsdiff to be used as a replacement for the bdiff program for SCCS. π₯
Since the performance of udiff is only a linear function of the file size, using fsdiff speeds up SCCS with large files.
Since the differences reported by fsdiff are smaller than what bdiff reports, this helps to keep SCCS history files smaller.
The normal output if called as udiff contains lines of these forms:
-------- 1 line deleted at %ld:
-------- %ld lines deleted at %ld:
-------- 1 line added at %ld:
-------- %ld lines added at %ld:
-------- 1 line changed at %ld from:
-------- %ld lines changed at %ld-%ld from:
-------- 1 line changed to %ld lines at %ld from:
-------- %ld lines changed to 1 line at %ld-%ld from:
-------- %ld lines changed to %ld lines at %ld-%ld from:
-------- to:
followed by blocks with the changed text. This is easier to read by humans than the POSIX output variant. π
The POSIX output variant contains lines of these forms:
n1 a n3,n4
n1,n2 d n3
n1,n2 c n3,n4
where n1 and n2 represent lines in file1 and n3 and n4 represent lines in file2. These lines resemble ed(1) commands to convert file1 to file2. By exchanging a for d and reading backward, file2 can be converted to file1. As in ed, identical pairs, where n1=n2 or n3=n4, are abbreviated as a single number.
Following each of these lines come all the lines that are affected in the first file flagged by <, then all the lines that are affected in the second file flagged by >. π«Ά
π OPTIONS π
-helpβ prints a short summary of theudiffoptions and exists. π (Yes, the page saysexists; Iβm just the messenger.)-versionβ prints theudiffversion number string and exists.nmatch=#β sets the number of matching lines to resync. Ifudiffis called asudiff, the default is two lines; otherwise it is one line.-posixβ outputs the differences in POSIX style instead of usingudiffstyle.
β EXIT STATUS β
The following exit values are returned:
0β no differences were found (udiffandfdiffonly).0β no error occurred (fsdiffonly).1β differences were found (udiffandfdiffonly).otherβ an error occurred.
π NOTES π
No output is generated if the files are the same. Literally silence, bestie. π€«
π BUGS π
None currently known. Iconic, honestly. β¨
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
π AUTHOR π
udiff was written 1985 - 2020 by Joerg Schilling and is now maintained by the schilytools project authors. π
π¦ SOURCE DOWNLOAD π¦
The source code for udiff 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
Joerg Schilling Β· 2022/08/21 Β· UDIFF(1) Β· schilytools source/version. 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 1985-2020 J. Schilling
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms