From: Vincent Le Gallic Date: Sun, 29 Sep 2013 12:13:08 +0000 (+0200) Subject: Just for fun X-Git-Url: http://gitweb.pimeys.fr/?p=scripts-20-100.git;a=commitdiff_plain;h=bb11aeed3f13b21963e3b58b767956ae751824d8 Just for fun --- diff --git a/snow b/snow new file mode 100755 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