NAME
diff-bifcode2 - compare files containing Bifcode2
SYNOPSIS
diff-bifcode2 FILE1 FILE2 [OPTIONS...]
DESCRIPTION
The diff-bifcode2 utility compares two files contining Bifcode2. For example, if file1 contains:
{U3:oneI1,U3:twoI2,}
And file2 contains:
{U3:oneI1,U5:threeI3,U3:twoI2,}
Then running diff-bifcode2 against the two results in the following:
$ diff-bifcode2 file1 file2
@@ -2,6 +2,8 @@
{
U3:one
I1,
+U5:three
+I3,
U3:two
I2,
}
A warning is printed to stderr if either file does not contain valid Bifcode.
Bifcode does not allow trailing newlines which makes it a little tricky to create them with a text editor. So they are stripped before comparing by default. You can use the --no-strip | -S
option to not do this.
EXIT VALUE
This command exists with a value of 0 when the files match, and 1 when they do not.
SEE ALSO
This command-line utility is a tiny wrapper around the Bifcode2 diff_bifcode2()
function.
AUTHOR
Mark Lawrence <nomad@null.net>
COPYRIGHT AND LICENSE
Copyright 2017-2022 Mark Lawrence <nomad@null.net>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.