You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
309 B

#!/bin/sh
while [ 1 ]; do
FILE="$1"
shift
if test -z "$FILE"; then
break
else
TOTAL=`grep '^msgid ' $FILE | wc -l`
MISSING=`grep '^msgstr ""' $FILE | wc -l`
DONE=`expr $TOTAL - $MISSING`
COMPLETE=`expr $DONE \\* 100 / $TOTAL`
echo "$FILE: $DONE/$TOTAL = $COMPLETE%"
fi
done