10 lines
257 B
Bash
Executable File
10 lines
257 B
Bash
Executable File
#!/bin/bash
|
|
|
|
[ "$1" = "usage" ] && echo " rz" && echo " get a random Z priority task" && exit 0
|
|
shift
|
|
|
|
number=$(( $RANDOM % ($("$TODO_FULL_SH" listpri Z "$1" | wc -l) -2) + 1 ))
|
|
#echo -n "$number "
|
|
|
|
"$TODO_FULL_SH" listpri Z "$1" | sed $number'q;d'
|