Skip to content

Command line interface

Terry Brady edited this page Nov 22, 2013 · 11 revisions

`The file analyzer can be invoked from a command line.
java -classpath "fileAnalyzer.jar" gov.nara.nwts.ftapp.BatchAnalyzer -help Usage: BatchAnalyzer [-options] [-root rootdir] [-outfile outfile] filetest to process a single directory, writing results to one file If absent, rootdir will default to current directory. If absent, outfile will be generated or BatchAnalyer [-options] -batchfile batch filetest to process a collection of directories The batch file is a tab separated file containing: rootdir --> result filenames

where options include -outdir

Directory to which output files will be written. Defaults to working directory -max defaults to 500000 -overwrite defaults to true -listfilters lists the filters associated with a file test -filter name of the filter to use. defaults to the first filter

the following options override filter defaults -prefix Filenames must start with this value -suffix Filenames must end with this value -contains Filenames must contain this value -excludes Filenames may not contain this value

result filtering options -rf

Only output results where column matches Multiple rf vals may be provided filetest ByType Count Files By Type DIR List Dir Name Match By Name BaseName Match By Base Name MD5 Get MD5 Checksum By Name SHA1 Get SHA1 Checksum By Name SHA-256 Get SHA-256 Checksum By Name ByMD5 By MD5 Checksum Path Match By Path TypeDir Count By Type and Dir Random Random Sampling Mil 105E Lowercase Lowercase Test

Press any key to continue . . . The import function can also be invoked from the command line. java -classpath "fileAnalyzer.jar" gov.nara.nwts.ftapp.BatchImporter -help

Usage: BatchImporter [-options] -infile inputfile importer

where options include -outdir Directory to which output files will be written. Defaults to working directory -outfile Output file name, defaults to a system generated name -max defaults to 500000 -overwrite defaults to true

importer TAB Import Tab-Separated File CSV Import Comma-Separated File SEMI Import Semicolon-Separated File LIST File List Importer Parse Parser `

Clone this wiki locally