This is an old revision of the document!

Pausing a script (like MSDOS pause command)

terminal, pause, input
Jan Schampera

From the example section of the read command, something that acts similar to the MSDOS pause command:

pause() {
  local dummy
  read -s -r -p "Press any key to continue..." -n 1 dummy

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information
You could leave a comment if you were logged in.
  • snipplets/pause_command.1280566228.txt
  • Last modified: 2011/06/24 05:10
  • (external edit)