namen.sh: update

This commit is contained in:
Peter Kleiweg
2026-03-25 17:48:14 +01:00
parent a1f0a76331
commit f2d240f2cb

View File

@@ -5,8 +5,8 @@ usage() {
echo " echo "
gebruik: gebruik:
$PROGNAME [opties] -x 1|2|3|4|5 -i $PROGNAME [opties] -x 1..8 -i
$PROGNAME [opties] -x 1|2|3|4|5 corpusfile(s) en/of corpusdirectory(s) $PROGNAME [opties] -x 1..8 corpusfile(s) en/of corpusdirectory(s)
-x : query -x : query
@@ -139,12 +139,12 @@ else
fi fi
search () { search () {
CMD="alto $@ '$EXPR' '$TEMPLATE' | $SORT | uniq -c | sed -e 's/\([0-9]\) */\1\t/' | sort -nr 2> /dev/null | tabulate -s '\t' -f plain 2> /dev/null$TAIL" CMD="alto $@ '$EXPR' '$TEMPLATE' | $SORT | uniq -c | sed -e 's/\([0-9]\) */\1\t/' | sort -f -k 2 2> /dev/null | sort -n -r -k 1,1 -s 2> /dev/null | tabulate -s '\t' -f plain 2> /dev/null$TAIL"
if [ $VERBOSE = 1 ] if [ $VERBOSE = 1 ]
then then
echo $CMD echo "$CMD"
fi fi
eval $CMD eval "$CMD"
} }
for i in "$@" for i in "$@"