From 332767105cf0fdf39af0a95039b46240ea73327a Mon Sep 17 00:00:00 2001 From: Andy2 Date: Sun, 15 May 2011 07:37:29 -0700 Subject: [PATCH] express size in K (rounding up) --- xwords4/dawg/mkindex.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xwords4/dawg/mkindex.sh b/xwords4/dawg/mkindex.sh index 76d4cafa1..64badff9f 100755 --- a/xwords4/dawg/mkindex.sh +++ b/xwords4/dawg/mkindex.sh @@ -26,7 +26,8 @@ do_lang() { echo "${DECCOUNT}" SIZE=$(ls -l $DICT | awk '{print $5}') - echo "${SIZE}" + SIZE=$(((SIZE+1024)/1024)) + echo "${SIZE}K" echo "" [ -n "$DO_MD5" ] && md5sum $DICT | awk '{print $1}' > $DICT.md5