From 88f7a0762642bf8209666c0fd0323990a4378de3 Mon Sep 17 00:00:00 2001 From: Olli Graf Date: Fri, 9 Jan 2026 09:51:51 +0100 Subject: [PATCH] spinner Code. --- really-long-command | 5 +++++ spinner.sh | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100755 really-long-command create mode 100755 spinner.sh diff --git a/really-long-command b/really-long-command new file mode 100755 index 0000000..e583ecf --- /dev/null +++ b/really-long-command @@ -0,0 +1,5 @@ +#! /usr/bin/env bash + +sleep 4 +echo "Ende langes Kommando" + diff --git a/spinner.sh b/spinner.sh new file mode 100755 index 0000000..2af47b4 --- /dev/null +++ b/spinner.sh @@ -0,0 +1,10 @@ +#! /usr/bin/bash + + +for c in '/' '|' '\' '-'; do + printf "\r%s" "${c}" + sleep 1 +done + +echo +echo 'done'