Pause for the user to press a key in the middle of a bash script


read -n1 -r -p "Press space to continue..." key

Tags:  bash

Share: