6 echo "Falta parĂ¡metro: ./test_calgary_zip.sh [gzip|bzip2]"
10 if [ ! -e bib ] ; then
11 echo "Descomprimiendo Calgary Corpus Suite ..."
12 if [ ! -e calgary.tar.bz2 ] ; then
13 echo "NO EXISTE cagary.tar.gz ... abortando"
15 tar -xjf calgary.tar.bz2
18 for file in bib book1 book2 geo news obj1 obj2 paper1 paper2 paper3 paper4 \
19 paper5 paper6 pic progc progl progp trans; do
20 echo "===================================="
22 time $1 -c $file > $file.$1 2> /dev/null
23 echo "print(\"%.04f\" % (`stat -c "%s" $file.$1`*8.0/`stat -c "%s" $file`))" | python
25 echo "===================================="