|
cmd"
NAMEdtsrhan — Create a DtSearch fzk fileSYNOPSISdtsrhan [-m] [-oo] [-oa] [-wscreensz] hanfile textfile [fzkfile]DESCRIPTIONdtsrhan is a filter utility that creates a correctly formatted fzk file from a file of unformatted input text documents using a user-written profile called a han file. The han file identifies specific data fields in the input text from which the fzk fields can be generated.dtsrhan makes a single forward pass through the text file. Its profiling ability is limited to line number, column number, and simple string pattern matching. It is usable only for ASCII text input files and ASCII fzk output files; nonASCII languages are not supported. dtsrhan is a convenience utility only; its use is optional. Canonical fzk files for input to dtsrload and dtsrindex may be generated in any other desirable way. OPTIONSThe following options are available:Note:
If an option takes a value, the value must be directly appended to the option name without white space.
OPERANDSdtsrhan takes the following operands:
ENVIRONMENT VARIABLESNone.RESOURCESNone.ACTIONS/MESSAGESNone.RETURN VALUESThe return values are as follows:
FILESdtsrhan reads the specified text file and the specified han file, and writes to the specified fzk file.EXAMPLESConvert the documents in the ASCII text file docs.txt to an fzk file named docs.fzk using the profile myprofile.han, all in the current working directory.
dtsrhan myprofile docs.txt
Convert the documents in the ASCII text file myin in the current working directory, to an fzk file named myout.fzk in the fzkdir subdirectory of the current working directory, using the han file located at /u/dtsearch/mypro.han3. If myout.fzk already exists, the fzk records for the document(s) in myin will be appended to it. If any lines in myin have more than 132 characters, they will be wrapped at the nearest whitespace less than 132 characters.
dtsrhan -oa -w132 /u/dtsearch/mypro.han3 myin fzkdir/myout
SEE ALSOdtsrload(1), dtsrindex(1), dtsrfzkfiles(4), dtsrhanfile(4), DtSearch(5) Visit the GSP FreeBSD Man Page Interface. |