#!/bin/bash RUTA=/usr/local/share/apertium/modes/ MODE=$RUTA$1.mode ESTADISTIQUES=$RUTA$1-estadistiques.mode if [ ! -e $MODE ]; then echo "ERROR" echo "El fitxer $1 no existeix" exit fi sed -e "s/automorf\.bin |/automorf\.bin \> \$LOGSDIR.tmp.\$SEC.org;/" < $MODE |\ sed -e "s/\.prob |/\.prob < \$LOGSDIR.tmp.\$SEC.org |/" |\ cat prev.txt - post.txt > $ESTADISTIQUES