NAME

list-files - List files in hak / mod / erf


SYNOPSIS

list-files [--help|-h] [--version|-V] [--verbose|-v] [--config config-file] [--output|-o outputfilename] [--matched|-m match-regexp] [--remove-matched|-M remove-matched-regexp] [--filename|-f] [--decode|-d] [filename ...]

list-files --help


DESCRIPTION

list-files takes mod, hak, erf, or pwc and lists files inside it. If given zip file, searches the contents of the zip and prints all files inside mods, haks, erfs or pwcs inside the zip.


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.

--output|-o outputfilename
Stores the list of files to the file named outputfilename.

--matched|-m match-regexp
If this is given, then only print lines which match given regexp (unless they also match the --remove-matched regexp).

--remove-matched|-m remove-matched-regexp
If this is given, do not print lines which match the given regexp (not even if they also match the --matched regexp).

--filename|-f
Adds name of the file from where the file is to the beginning of line.

--decode|-d
Does some basic decoding of the names for armors. This will result tab separated output, where the output columns are: 1) type ``p'' or ``a'', 2) race as number or plain string if unknown race, 3) gender as number, 4) material as number or as string if unknown (missing from if type is ``a'') 5) body part, 6) variation.

The decoding is one after matching the filenames to be printed.


EXAMPLES

    list-files foo.erf
    list-files -f cerea109o.mod
    list-files -o output.txt cerea2.zip
    list-files -o output.txt -M '\.(mdb|tga)$' file.hak
    list-files -o output.txt -d -M '\.(mdb|tga)$' file.hak


FILES

~/.listfilesrc
Default configuration file.


SEE ALSO

erfpack(1), erfunpack(1), Erf(3), and ErfWrite(3).


AUTHOR

Tero Kivinen <kivinen@iki.fi>.


HISTORY

This program was created for Carter / Tyrnis (requested by Drakolight) to list contents of the hak for plugin use.