bin: script to display a binary clock
parent
1599871ca9
commit
dbd670107b
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
for a in $(date +"%H%M%S"|cut -b1,2,3,4,5,6 --output-delimiter=" ")
|
||||||
|
do
|
||||||
|
case "$a" in
|
||||||
|
0) echo ". . . .";;
|
||||||
|
1) echo ". . . *";;
|
||||||
|
2) echo ". . * .";;
|
||||||
|
3) echo ". . * *";;
|
||||||
|
4) echo ". * . .";;
|
||||||
|
5) echo ". * . *";;
|
||||||
|
6) echo ". * * .";;
|
||||||
|
7) echo ". * * *";;
|
||||||
|
8) echo "* . . .";;
|
||||||
|
9) echo "* . . *";;
|
||||||
|
esac
|
||||||
|
done
|
Loading…
Reference in New Issue