dot

packages and services management
Log | Files | Refs | README

commit 781bc69cf74394c848d2776d4bbc5ad2364f120f
parent a284e53b580e64f55af5ba934439e840cb2d7758
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun,  9 Apr 2017 23:25:37 +0200

Added fun-type

Diffstat:
Mbin/fun-dna | 4++--
Abin/fun-type | 11+++++++++++
2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/bin/fun-dna b/bin/fun-dna @@ -81,11 +81,11 @@ random() while date +%s | md5sum | tr -cd '0-9a-f\n' | tr 0-9a-f ATCGATCGATCGATCG | fold -w 1 do - sleep 1 + sleep 4 done | while read -r n do nucleotide "$n" - sleep 0.2 + sleep 0.8 done } diff --git a/bin/fun-type b/bin/fun-type @@ -0,0 +1,11 @@ +# print a text line by line, with a delaye between every charactery + +while IFS='' read -r line +do + while [ "$line" ] + do + printf %s "$line" | cut -zb 1 + line="${line#?}" + done + printf '\n' +done