shell script wait example
Example 1: command wait bash
sleep NUMBER[SUFFIX] #Just use this command structure to wait/sleep
#Example:
sleep 5m #sleeps 5 minutes
sleep 0.1 #sleeps 0.1 seconds or 100 miliseconds
#Suffixes
s - seconds (default)
m - minutes
h - hours
d - days
When no suffix is specified, it defaults to seconds.
Example 2: pause bash script
function pause(){
read -s -n 1 -p "Press any key to continue . . ."
echo ""
}
## Pause it ##
pause
## rest of script below