NAME

gffcmp - Compare gff files

gffdiff - Print diff of gff files


SYNOPSIS

gffcmp [--help|-h] [--version|-V] [--verbose|-v] [--config config-file] [--exclude|-e exclude-regexp] [--include|-i include-regexp] [--exclude-field exclude-regexp] [--include-field include-regexp] [--diff|-d] [--cmp|-c] filename ...

gffdiff [--help|-h] [--version|-V] [--verbose|-v] [--config config-file] [--exclude|-e exclude-regexp] [--include|-i include-regexp] [--exclude-field exclude-regexp] [--include-field include-regexp] [--diff|-d] [--cmp|-c] filename ...

gffcmp --help

gffdiff --help


DESCRIPTION

gffcmp checks if two or more gffs are identical and if so returns 0. In case the files are different it prints out the first difference and returns 1.

gffdiff checks if two or more gffs are identical and if so returns 0. In case the files are different it prints out differences between files and returns 1. All files compared against the first file.


OPTIONS

--help -h
Prints out the usage information.

--version -V
Prints out the version information.

--verbose -v
Enables the verbose prints. This option can be given multiple times, and each time it enables more verbose prints.

--config config-file
All options given by the command line can also be given in the configuration file. This option is used to read another configuration file in addition to the default configuration file.

--exclude -e exclude-regexp
Exclude the given regexp when reading the data in. This will skip the whole structure behind the given structure, meaning that --include cannot be used to get parts of that back. This can be used to speed up the processing if only specific parts of the tree is required. Normally this should be something like ^/Creature List meaning that all creature list information is skipped when reading gff.

--include -i include-regexp
Only include the given regexp when reading the data in. This will skip all other structures which do not match the regexp. This can be used to speed up the processing if only specific parts of the tree is required. Normally this should be something like ^/Creature List meaning that only creature list information is read in.

--exclude-field exclude-regexp
Exclude given fields to be read in in case their labels match the given regexp. This only matches the end labels, not intermediate structure labels.

--include-field include-regexp
Only include given fields matching the given regexp to the structures. This only matches the end labels, not intermediate structure labels.

--diff -d
Print multiple differences, i.e. do not stop on first difference.

--cmp -c
Print only first difference, and exit.


EXAMPLES

    gffcmp file1.git file2.git
    gffcmp --exclude-field TemplateResRef file1.uti file2.uti
    gffdiff ztk_ada_spear.uti ztk_ada_scythe.uti


FILES

~/.gffcmprc
Default configuration file.


SEE ALSO

gffencode(1), gffmodify(1), gffprint(1), Gff(3), and GffRead(3).


AUTHOR

Tero Kivinen <kivinen@iki.fi>.


HISTORY

This program first apperead as gffcmp, but the gffdiff support was added later to print out more than difference between files.