Compare files line by line.
Synopsis
diff [OPTION]... FILE1 FILE2
Description
Compare two files line by line and output their differences. Runs in the just-bash WASM shell inside SLICC.
Options
-u, --unified[=NUM] Output NUM (default 3) lines of unified context.
-c, --context[=NUM] Output NUM (default 3) lines of context.
-y, --side-by-side Output in two columns.
-i, --ignore-case Ignore case differences.
-b, --ignore-space-change Ignore changes in whitespace amount.
-B, --ignore-blank-lines Ignore blank line changes.
--no-color Disable colored output.
Examples
$ diff file1.txt file2.txt
Compare two files.
$ diff -u original.js modified.js
Show differences in unified format.
Notes
Operates on the SLICC virtual filesystem (LightningFS/IndexedDB). Output includes colored additions (green) and deletions (red) by default.
See Also
patch, cmp, comm