How to sleep for some time in Bash script

You need to use the sleep command to add delay for a specified amount of time. The syntax is as follows for gnu/bash sleep command:


Where SUFFIX may be:

s for seconds (the default)
m for minutes.
h for hours.
d for days.
To sleep for 5 seconds, use:
sleep 5

Post a Comment

Featured Post

Updated Coupons / promo codes for Google Apps for Work / Business

To redeem: 1. Sign up for Google Apps   2. Go to your billing settings  3. Choose your payment plan  4. Enter your promo code ...