$OpenBSD$ --- examples/data/scripts/instance-select-wmii.sh.orig Sat Apr 28 20:27:17 2012 +++ examples/data/scripts/instance-select-wmii.sh Wed Nov 21 18:38:07 2012 @@ -35,7 +35,7 @@ case "$1" in ;; "prev") current="$( wmiir read /client/sel/ctl | head -n 1 )" - prev="$( wmiir read /tag/sel/index | grep -B 10000 " $current " | tac | grep -m 1 uzbl | cut -d ' ' -f 2 )" + prev="$( wmiir read /tag/sel/index | grep -B 10000 " $current " | tail -r | grep -m 1 uzbl | cut -d ' ' -f 2 )" if [ -n "$prev" ]; then wmiir xwrite /tag/sel/ctl "select client $prev" fi