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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples<br />

Localization<br />

Exit Values<br />

Files<br />

–v Writes to stdout all words not literally in the dictionary. This is the default<br />

for this implementation because it doesn’t apply suffix/prefix rules to derive<br />

words.<br />

–x Writes each plausible word stem to stdout. Because this implementation of<br />

spell doesn’t derive words, all words are their own word stems.<br />

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

This is synonymous with –f.<br />

By default, spell does not sort the output. This maintains the order and number of<br />

occurrences of spelling errors. The following command checks for spelling errors,<br />

puts them in dictionary order, removes duplicates, and print them in a multicolumn<br />

format:<br />

spell file | sort –dfu | c<br />

spell uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v LC_SYNTAX<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Failure due to any of the following:<br />

v Missing hashfile name after –d<br />

v Missing history filename after –h<br />

v Missing local filename after –f<br />

v Inability to open the local file<br />

v Receipt of user interrupt<br />

v An error reading the dictionary file<br />

A spelling mistake is not considered an error.<br />

2 Incorrect command-line option<br />

spell uses the following files:<br />

/usr/lib<br />

The default location of user hash files.<br />

/usr/lib/hash<br />

The default dictionary file, in hashed form.<br />

/usr/lib/hashb<br />

The British dictionary file, in hashed form.<br />

/usr/lib/lwords<br />

The default location of the local words file. This need not exist.<br />

spell<br />

Chapter 2. Shell command descriptions 595

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

Saved successfully!

Ooh no, something went wrong!