Bash Any Key
Here’s the script to add pauses in your Bash script.
<pre lang="bash">
echo "please wait until web page loads ... "
read -p "Press any key to continue... " -n1 -s
You can also put it inside a function and call it multiple times.
<pre lang="bash">
function press_any_key {
echo "please wait until web page loads ... "
read -p "Press any key to continue... " -n1 -s
}
press_any_key