bash conditions1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
WAITF=${1:-50};
for i in $(seq 1 1 $WAITF);
do
echo -n "#";
done
for i in $(seq 1 1 $WAITF);
do
echo -en "\b \b";
sleep 0.1s;
done
echo -e "\rBang!!!";
exit 0;