mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
switch size and wordcount columns
This commit is contained in:
parent
a89d81587d
commit
7ccacdc26d
1 changed files with 8 additions and 4 deletions
|
@ -19,11 +19,15 @@ do_lang() {
|
||||||
for DICT in $(ls *.xwd); do
|
for DICT in $(ls *.xwd); do
|
||||||
echo "<tr>"
|
echo "<tr>"
|
||||||
echo "<td> <a href=\"./$LANG/$DICT\">${DICT%.xwd}</a></td>"
|
echo "<td> <a href=\"./$LANG/$DICT\">${DICT%.xwd}</a></td>"
|
||||||
SIZE=$(ls -l $DICT | awk '{print $5}')
|
|
||||||
echo "<td>${SIZE}</td>"
|
HEXCOUNT=$(hd $DICT | head -n 1 | awk '{print $6 $7 $8 $9}' | \
|
||||||
HEXCOUNT=$(hd $DICT | head -n 1 | awk '{print $6 $7 $8 $9}' | tr [a-f] [A-F])
|
tr [a-f] [A-F])
|
||||||
DECCOUNT=$(echo "ibase=16;$HEXCOUNT" | bc)
|
DECCOUNT=$(echo "ibase=16;$HEXCOUNT" | bc)
|
||||||
echo "<td>${DECCOUNT}</td>"
|
echo "<td>${DECCOUNT}</td>"
|
||||||
|
|
||||||
|
SIZE=$(ls -l $DICT | awk '{print $5}')
|
||||||
|
echo "<td>${SIZE}</td>"
|
||||||
|
|
||||||
echo "</tr>"
|
echo "</tr>"
|
||||||
[ -n "$DO_MD5" ] && md5sum $DICT | awk '{print $1}' > $DICT.md5
|
[ -n "$DO_MD5" ] && md5sum $DICT | awk '{print $1}' > $DICT.md5
|
||||||
done
|
done
|
||||||
|
@ -59,7 +63,7 @@ done
|
||||||
echo ".</p>"
|
echo ".</p>"
|
||||||
|
|
||||||
echo "<table>"
|
echo "<table>"
|
||||||
echo "<tr><th>File</th><th>Size</th><th>Wordcount</th></tr>"
|
echo "<tr><th>Dictionary</th><th>Wordcount</th><th>Size</th></tr>"
|
||||||
for DIR in $DIRS; do
|
for DIR in $DIRS; do
|
||||||
do_lang $DIR
|
do_lang $DIR
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue