mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-20 20:14:57 +00:00
countdown bash script
This commit is contained in:
19
countdown.bash
Executable file
19
countdown.bash
Executable file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
ticker_time=$1
|
||||||
|
orig_time=$1
|
||||||
|
echo ""
|
||||||
|
while [[ $ticker_time -gt 0 ]]; do
|
||||||
|
sleep 1
|
||||||
|
ticker_time=$(( $ticker_time - 1 ))
|
||||||
|
countd=$orig_time
|
||||||
|
printf "\r"
|
||||||
|
for n in `seq 0 $orig_time`; do
|
||||||
|
if [[ $n -lt $ticker_time ]]; then
|
||||||
|
echo -n '#'
|
||||||
|
else
|
||||||
|
echo -n '-'
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo -n " $ticker_time/$orig_time"
|
||||||
|
done
|
||||||
|
echo ""
|
||||||
Reference in New Issue
Block a user