SDIFF(1)
๐ SDIFF ๐
okay bestie, welcome to sdiff โ the User Commands girlie whose whole job is putting two files next to each other and being like "here's what's different, side by side." she's part of the diffutils squad. let's get into it ๐ซถ
โจ SYNOPSIS โจ
sdiff [OPTION]... FILE1 FILE2
๐ธ DESCRIPTION ๐ธ
Side-by-side merge of differences between FILE1 and FILE2. that's it, that's the vibe โ two files, one column each, differences laid out so you can actually see them. iconic behavior tbh ๐
mandatory arguments to long options are mandatory for short options too. no cap. if the long one needs a value, the short one needs it too.
๐ OPTIONS ๐
-o,--output=FILEโ operate interactively, sending output to FILE. like, it actually talks to you and writes the results over there.-i,--ignore-caseโ consider upper- and lower-case to be the same.Aanda? same girl, different font ๐-E,--ignore-tab-expansionโ ignore changes due to tab expansion.-Z,--ignore-trailing-spaceโ ignore white space at line end. trailing spaces are just โจvibesโจ, we're not counting them.-b,--ignore-space-changeโ ignore changes in the amount of white space.-W,--ignore-all-spaceโ ignore all white space. every single one. gone. not me erasing your formatting ๐ญ-B,--ignore-blank-linesโ ignore changes whose lines are all blank.-I,--ignore-matching-lines=REโ ignore changes all whose lines match RE.--strip-trailing-crโ strip trailing carriage return on input. bye bye\r๐ฆ-a,--textโ treat all files as text.-w,--width=NUMโ output at most NUM (default130) print columns. default is literally130, remember that.-l,--left-columnโ output only the left column of common lines.-s,--suppress-common-linesโ do not output common lines. if it's the same, we're not talking about it ๐ซถ-t,--expand-tabsโ expand tabs to spaces in output.--tabsize=NUMโ tab stops at every NUM (default8) print columns. yes bestie, default is8.-d,--minimalโ try hard to find a smaller set of changes. she's putting in the effort ๐ฅ-H,--speed-large-filesโ assume large files, many scattered small changes.--diff-program=PROGRAMโ use PROGRAM to compare files.--helpโ display this help and exit. she's helpful and she's leaving ๐-v,--versionโ output version information and exit.
โญ THE IMPORTANT LITTLE DEETS โญ
if a FILE is -, read standard input. yes, the humble dash. the main character of stdin ๐
exit status is 0 if inputs are the same, 1 if different, 2 if trouble.
so like:0= twins,1= not twins,2= something went genuinely wrong ๐ญ memorize it, it's giving exam question.
๐ AUTHOR ๐
Written by Thomas Lord. we love him, we thank him, periodt ๐
๐ REPORTING BUGS ๐
Report bugs to: bug-diffutils@gnu.org
GNU diffutils home page: <https://www.gnu.org/software/diffutils/>
General help using GNU software: <https://www.gnu.org/gethelp/>
found a bug? don't suffer in silence bestie, email the diffutils girlies fr fr ๐
๐ COPYRIGHT ๐
Copyright ยฉ 2025 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
okay so that last part is not a joke โ there is genuinely no warranty. it's giving "you're on your own" but make it legal ๐
๐ SEE ALSO ๐
The full documentation for sdiff is maintained as a Texinfo manual. If the info and sdiff programs are properly installed at your site, the command
info sdiff
should give you access to the complete manual. go read it, it's the director's cut ๐
and that's the whole page bestie!! โจ this was diffutils 3.12, dated April 2025 โ written by the Free Software Foundation, delivered to you with love, and honestly? she ate. mwah ๐๐ฆ๐
๐ฆ where this page comes from
- alpine 3.22: diffutils-doc 3.12-r0 ยท GPL-3.0-or-later
- alpine 3.23: diffutils-doc 3.12-r0 ยท GPL-3.0-or-later
- alpine 3.24: diffutils-doc 3.12-r0 ยท GPL-3.0-or-later
- arch rolling: diffutils 3.12-2 ยท GPL-3.0-or-later
- nixos 26.05: diffutils 3.12
- nixos 26.05: diffutils-static 3.12
- nixpkgs unstable: diffutils 3.12
- opensuse-leap 16.0: diffutils 3.12-160000.2.2 ยท GFDL-1.2-only AND GPL-3.0-or-later
- opensuse-leap 16.0: diffutils 3.12-160000.2.2 ยท GFDL-1.2-only AND GPL-3.0-or-later
- opensuse-leap 16.0: diffutils 3.12-160000.2.2 ยท GFDL-1.2-only AND GPL-3.0-or-later
- opensuse-leap 16.0: diffutils 3.12-160000.2.2 ยท GFDL-1.2-only AND GPL-3.0-or-later
- ubuntu resolute: diffutils 1:3.12-1 ยท GPL-3.0-or-later
- ubuntu resolute: diffutils 1:3.12-1ubuntu0.1 ยท GPL-3.0-or-later
- ubuntu stonking: diffutils 1:3.12-1ubuntu2 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms