commit fe9ce22d65c5e0effefc1f005c2cb4d860abb13e
parent baaf9c0bb7db5e59ffb4f08e2f4383b29dd5a52e
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:
1 file changed, 5 insertions(+), 1 deletion(-)
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