codeberg.org/pebbe/errors

This commit is contained in:
Peter Kleiweg
2026-03-16 13:41:03 +01:00
parent 7b18c51567
commit 78dc580c8d
40 changed files with 706 additions and 692 deletions

View File

@@ -15,6 +15,7 @@ overige opties:
-n int : max aantal resultaten
-p : gebruik pager
-s : tel hits één keer per bericht
-v : verbose
"
exit
}
@@ -23,7 +24,8 @@ SINGLE=0
SELECT=0
USEPAGER=0
LIMIT=0
while getopts 'sin:p' opt
VERBOSE=0
while getopts 'sin:pv' opt
do
case "$opt" in
i)
@@ -38,6 +40,9 @@ do
s)
SINGLE=1
;;
v)
VERBOSE=1
;;
*)
usage
;;
@@ -66,7 +71,11 @@ else
fi
search () {
eval "alto $@ '$EXPR' '$TEMPLATE' | $SORT | uniq -c | sort -nr 2> /dev/null $TAIL"
if [ $VERBOSE = 1 ]
then
echo "alto $@ '$EXPR' '$TEMPLATE' | $SORT | uniq -c | sort -nr 2> /dev/null$TAIL"
fi
eval "alto $@ '$EXPR' '$TEMPLATE' | $SORT | uniq -c | sort -nr 2> /dev/null$TAIL"
}
for i in "$@"