DIFF(1)
π DIFF(1) β from User Contributed Perl Documentation, bestie π
β¨ NAME β¨
diff β compute intelligent differences between two files. that's the whole name, no cap π
π¦ SYNOPSIS π¦
okay so the whole synopsis is literally this, copy it exactly:
diff [-c | -C lines | -e | -f | -q | -s | -u | -U lines] file1 file2
π DESCRIPTION π
The diff command compares file1 and file2, producing a listing on standard output describing how to convert one file to the other. it's giving βhere's exactly what changedβ energy. Various formats are available for representing the file changes. By default the output is in the traditional UNIX diff format. classic, iconic, default behavior.
π¨ Real talk: two directories cannot be compared. If eitherfile1orfile2is a directory,diffis applied to the non-directory file and a file of the same name within the directory. iykyk, don't try to make dirs happen.
π OPTIONS π
The following options are supported, periodt:
-cβ produce a context diff with3lines of context. cute little context moment.-C NUMβ produce a context diff withNUMlines of context. you pick the number, bestie.-eβ Create a script for theededitor. old-school editor representation.-fβ Like-ebut in reverse order (output cannot be processed byed). heads up:edcan't process this one.-uβ Output a unified diff with3lines of context. unified diff stans rise.-U NUMβ Output a unified diff withNUMlines of context. same vibe, your chosenNUM.-qβ Print a message if the input files differ instead of displaying the difference. just the tea, not the whole diff.-sβ Print a message if the input files are identical. By default no output is produced in this case. silence is the default when they match.
π AUTHOR π
Mark-Jason Dominus, "<mjd-perl-diff@plover.com>". author icon behavior.
Visit my diff/LCS web page at <http://www.plover.com/~mjd/perl/diff/>. go look, bestie.
okay bye bestie π«Ά β this page is perl v5.42.2, dated 2026-02-15, and yeah it's DIFF(1) π
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms