OS Manuals

/usr/bin/ldiff

Diff::LCS computes the difference between two Enumerable sequences using the

From ruby4.0-diff-lcs 2.0.0-r1 (os), captured 2026-11-05 by running ldiff --help (exit 0). permalink

Usage: ldiff [options] oldfile newfile

    -c, -C, --context [LINES]        Displays a context diff with LINES lines
                                     of context. Default 3 lines.
    -u, -U, --unified [LINES]        Displays a unified diff with LINES lines
                                     of context. Default 3 lines.
    -a, --text                       Treat the files as text and compare them
                                     line-by-line, even if they do not seem
                                     to be text.
        --binary                     Treats the files as binary.
    -q, --brief                      Report only whether or not the files
                                     differ, not the details.
        --help                       Shows this text.
        --version                    Shows the version of Diff::LCS.

By default, runs produces an "old-style" diff, with output like UNIX diff.
Options (7)
OptionDescriptionSource
-c, -C, --context LINESDisplays a context diff with LINES lines of context.help
-u, -U, --unified LINESDisplays a unified diff with LINES lines of context.help
-a, --textTreat the files as text and compare them line-by-line, even if they do not seem to be text.help
--binaryTreats the files as binary.help
-q, --briefReport only whether or not the files differ, not the details.help
--helpShows this text.help
--versionShows the version of Diff::LCS.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.