replace jot(1) with os independent shell code - scroll - scrollbackbuffer program for st
 (HTM) git clone git://git.suckless.org/scroll
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit fe9ce22d65c5e0effefc1f005c2cb4d860abb13e
 (DIR) parent baaf9c0bb7db5e59ffb4f08e2f4383b29dd5a52e
 (HTM) Author: Jan Klemkow <j.klemkow@wemelug.de>
       Date:   Sat, 25 Apr 2020 21:15:04 +0200
       
       replace jot(1) with os independent shell code
       
       Diffstat:
         M up.sh                               |       6 +++++-
       
       1 file changed, 5 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/up.sh b/up.sh
       @@ -3,7 +3,11 @@
        set -eu
        export POSIXLY_CORRECT=1
        
       -jot 50 > tmp.log
       +i=1
       +while test $i -lt 50; do
       +        print $i
       +        i=$((i + 1))
       +done > tmp.log
        
        (sleep 1; printf "\033[5;2~"; sleep 1; ) \
                | ./ptty ./scroll tail -fn 50 tmp.log > out.log