16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

spell<br />

spell — Detect spelling errors in files<br />

Format<br />

Description<br />

Options<br />

spell [–biluvx] [–d hashfile] [–f local] [–h history] [+local] [file ...]<br />

Note: The spell utility is fully supported for compatibility with older <strong>UNIX</strong> systems.<br />

However, because it is no longer supported by P<strong>OS</strong>IX.2 IEEE standard<br />

1003.2-1992, this utility should be avoided for applications intended to be<br />

portable to other <strong>UNIX</strong>- branded systems.<br />

spell checks for misspelled words in each specified file. If you do not specify a file,<br />

it checks the standard input (stdin). A list of potentially misspelled words is<br />

produced on standard output (stdout).<br />

Words are checked against a local word list and then against a hashed word list.<br />

The hashed word list included in this distribution contains virtually no proper names<br />

or technical terms. It is assumed that you will enter these words into your local word<br />

list (or into your machine’s word list). Any capitalized word in the hash list must be<br />

capitalized in the input document; all other words are matched either capitalized or<br />

not. All word forms, including plurals, must be explicitly included in the hash list.<br />

This approach prevents the acceptance of nonsense words that can result from the<br />

algorithmic combination of legal roots with legal suffixes or prefixes, a phenomenon<br />

common to many other spelling checkers.<br />

–b Uses British spelling (such as “colour” instead of “color”). The dictionary file<br />

used is /usr/lib/hashb instead of /usr/lib/hash.<br />

–d hashfile<br />

Uses hashfile as the dictionary. hashfile is a hash list produced from a list of<br />

words using the -i option of spell. To use a list other than the default<br />

/usr/lib/hash, the –d option must be specified.<br />

–f local<br />

Uses the file local as a dictionary of local words, given one word per line. If<br />

you do not specify this option, the file /usr/lib/lwords is used as the local<br />

dictionary.<br />

–h history<br />

Appends a history of all misspelled words to the file history. This file can<br />

be used by a system administrator for dictionary maintenance or generating<br />

a local dictionary.<br />

–i Creates a new hash list file or add words to an existing file, instead of<br />

checking for spelling errors. Words to be entered into the dictionary should<br />

be specified one per line with no white space on the line. Lines beginning<br />

with the # character are ignored as comments. Be sure that the words you<br />

are entering into the hash list are correctly spelled.<br />

–l Produces a longer form of output. For each misspelled word, spell prints<br />

three tab-separated columns containing the misspelled word, the line<br />

number, and the filename.<br />

–u Forces spell to accept any word that is in all uppercase. spell assumes<br />

that such words are acronyms.<br />

594 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!