mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
14 lines
165 B
Bash
14 lines
165 B
Bash
#!/usr/bin/env bash
|
|
|
|
# trapping the script exit
|
|
|
|
trap "echobyebye" EXIT
|
|
|
|
count=1
|
|
while [ $count -le 5 ]
|
|
do
|
|
echo "Loop #$count"
|
|
sleep 3
|
|
count=$[ $count + 1 ]
|
|
done
|