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


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

Date: 2016-10-14

Tags:  bash

Share: