docs:bash:pause

pause

Bash does not have a native pause function. If you wish to recreate the functionality of DOS pause, first define a pause function and then call pause.

function pause(){
	echo -e "\n"
	read -n 1 -p 'Press any key to continue'
}

# do something here

# now wait for user input
pause
  • docs/bash/pause.txt
  • Last modified: 2008/08/03 00:25
  • by 127.0.0.1