NAME

trnprint - Print Trn/Trx files / resources


SYNOPSIS

trnprint [--help|-h] [--version|-V] [--verbose|-v] [--config config-file] [--print-filename|-f] [--print-basename|-b] [--no-labels|-l] [--separator|-s separator] [--print-all|-a] [--linear|-L] filename ...

trnprint --help


DESCRIPTION

trnprint prints trn/trx files or individual resources to human readable or machine editable format. The output of the trnprint can be converted back to trn by using trnencode(1).

filename is read in and selected fields are printed out from it. The output is normally prefixed with the label (unless -l is given), and it can be prefixed with filename (if -f is given), or basefilename (if -b is given).


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.

--print-filename -f
Prefix the output with the full file name.

--print-basename -b
Prefix the output with the base filename, i.e. the file name where the path component is removed.

--no-labels -l
Do not print the labels for each field, only print the value (and the file name if requested)

--separator -s separator
Use the given string as a separator between the label and value instead of default :\t.

--print-all -a
Print all fields (also those with low interest).

--linear -L
Print data in linear format, i.e. do not try to parse it to XY arrays.


EXAMPLES

    trnprint 0000.trwh
    trnprint -b 0001.trrn
    trnprint area1.trn


FILES

~/.trnprintrc
Default configuration file.


SEE ALSO

trnencode(1), Trn(3), and TrnRead(3).


AUTHOR

Tero Kivinen <kivinen@iki.fi>.


HISTORY

Sample program used while reverse engineering some of the resource fields.