#/bin/sh
#
#  Los ficheros que an estn en ingles tienen permiso de ejecucin ;-)
#
#

TEMPORAL=/tmp/dostat.$$

wc -l  `find .. -name "*.tex" -perm 664 -print` | grep total > $TEMPORAL
CASTELLANO=`cat $TEMPORAL`

wc -l  `find .. -name "*.tex" -perm 775 -print` | grep total > $TEMPORAL
INGLES=`cat $TEMPORAL`

wc -l `find .. -name "*.tex" -print` | grep total > $TEMPORAL
TOTAL=`cat $TEMPORAL`

rm -f $TEMPORAL

echo -e "\n Estadsticas `date`\n"
echo "wc -l (contador de lneas) dice:"
echo "-------------------------------------------"
echo "en Castellano $CASTELLANO lneas traducidas"
echo "en Ingles     $INGLES lneas pendientes de traduccin"
echo "Ficheros .tex $TOTAL"
echo -e "-------------------------------------------\n"

