nix-config/modules/todo-txt/pri.sh
2023-02-19 16:53:15 -08:00

12 lines
246 B
Bash
Executable file

ITEMS=$2
PRIORITY=$3
if [[ $ITEMS =~ ^([0-9]+)-([0-9]+)$ ]]; then
START=${BASH_REMATCH[1]}
END=${BASH_REMATCH[2]}
for i in $(seq $START $END); do
todo.sh command pri $i $PRIORITY || break
done
else
todo.sh command pri $ITEMS $PRIORITY
fi