bash conditions2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
WAITF=${1:-50};
for i in $(seq $WAITF -1 1);
do
echo -en "\r";
for item in $(seq 1 1 $i);
do
echo -n "#";
done;
let DIFF="WAITF - i";
for space in $(seq 1 1 $DIFF);
do
echo -n " ";
done;
sleep 0.1s;
done;
echo -e "\rBang!!!";
exit 0;