]> gitweb.pimeys.fr Git - scripts-20-100.git/commitdiff
Just for fun
authorVincent Le Gallic <legallic@crans.org>
Sun, 29 Sep 2013 12:13:08 +0000 (14:13 +0200)
committerVincent Le Gallic <legallic@crans.org>
Sun, 29 Sep 2013 12:13:08 +0000 (14:13 +0200)
snow [new file with mode: 0755]

diff --git a/snow b/snow
new file mode 100755 (executable)
index 0000000..44f9a02
--- /dev/null
+++ b/snow
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# à sourcer pour que ça marche
+i=0;
+clear;while [ $i -le 100 ] ;do echo $i;i=$(($i+1));
+echo $LINES $COLUMNS $(($RANDOM%$COLUMNS));sleep 0.05;done|gawk '{a[$3]=0;for(x in a) {o=a[x];a[x]=a[x]+1;printf "\033[%s;%sH ",o,x;printf "\033[%s;%sH*\033[0;0H",a[x],x;}}'
+clear