new txt from word docs

$ outdir=out;for i in *; do ext=$( echo "$i" |  grep -oE "[^.]*$" ); /home/adecatur/Downloads/malawi_ocr/antiword-xp-rb/antiwordxp.rb "$i" > out/$( basename $i $ext )txt; done