From 94f582cdc09418613284c031397848624fd46f0b Mon Sep 17 00:00:00 2001 From: Andy2 Date: Sun, 15 May 2011 07:28:10 -0700 Subject: [PATCH] switch size and wordcount columns --- xwords4/dawg/mkindex.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/xwords4/dawg/mkindex.sh b/xwords4/dawg/mkindex.sh index 2f029c7c0..76d4cafa1 100755 --- a/xwords4/dawg/mkindex.sh +++ b/xwords4/dawg/mkindex.sh @@ -19,11 +19,15 @@ do_lang() { for DICT in $(ls *.xwd); do echo "" echo "  ${DICT%.xwd}" - SIZE=$(ls -l $DICT | awk '{print $5}') - echo "${SIZE}" - HEXCOUNT=$(hd $DICT | head -n 1 | awk '{print $6 $7 $8 $9}' | tr [a-f] [A-F]) + + HEXCOUNT=$(hd $DICT | head -n 1 | awk '{print $6 $7 $8 $9}' | \ + tr [a-f] [A-F]) DECCOUNT=$(echo "ibase=16;$HEXCOUNT" | bc) echo "${DECCOUNT}" + + SIZE=$(ls -l $DICT | awk '{print $5}') + echo "${SIZE}" + echo "" [ -n "$DO_MD5" ] && md5sum $DICT | awk '{print $1}' > $DICT.md5 done @@ -59,7 +63,7 @@ done echo ".

" echo "" -echo "" +echo "" for DIR in $DIRS; do do_lang $DIR done
FileSizeWordcount
DictionaryWordcountSize