
if [ $# -lt 2 ]
then
    echo "Usage:"
    echo "        compdic-dic-to-cats <dic-file> <cats-file>"
    echo "where"
    echo "    <wordlist> - file containig a list of words, one per line, iso-8859-2 encoded"
    echo "    <automaton> - a file to which the compiled automaton in openfst format shoul be written"
    exit 0
fi	

source=$1
cats=$2

echo generating cats file ...

cat $source | cut -d ',' -f 2 | sort -u > $cats

