hanoidb/levelpresence.sh

22 lines
311 B
Bash
Raw Normal View History

#!/bin/bash
2012-01-05 16:50:33 +00:00
t=0
while sleep 1 ; do
2012-01-05 16:50:33 +00:00
let "t=t+1"
printf "%5d [" "$t"
for ((i=0; i<35; i++)) ; do
if ! [ -f "A-$i.data" ] ; then
echo -n " "
elif ! [ -f "B-$i.data" ] ; then
echo -n "-"
elif ! [ -f "X-$i.data" ] ; then
echo -n "="
else
echo -n "*"
fi
done
echo
done