if [ $# -lt 2 ] then echo "Usage:" echo " compdic-dic-to-cats " echo "where" echo " - file containig a list of words, one per line, iso-8859-2 encoded" echo " - 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