soundex - convert strings to soundex codes
SYNOPSIS
soundex [-fc] [-Dn] column < table
echo word | soundex
DESCRIPTION
soundex
prints a code based on the contents of
the
column
from
table,
or from
word,
using Knuth's soundex algorithm.
If a column name argument is specified,
soundex
outputs a table sorted by a new prepended
column which contains the soundex code.
This column is used by the
like
command to find words which sound similar to
its first argument.
If no arguments are specified,
soundex
prints the code on the standard output.
OPTIONS
-fc use c as the input field separator instead of TAB.
-Dn turn on debugging at level n, or 1 if n
is not specified.
EXAMPLE
$ justify < names
Name Company
--------- ----------------------
Shaffer Art and Mart
Schaefer Bauer and Schaffer
Schaffer Revolutionary Software
$ soundex Name < names
sName Name Company
---- --------- ----------------------
s160 Schaefer Bauer and Schaffer
s160 Schaffer Revolutionary Software
s160 Shaffer Art and Mart
$ echo Wright | soundex
w623
SEE ALSO