Pausing a script (like MSDOS pause command)

snipplet:
terminal, pause, input
LastUpdate:
2010-07-31
Contributor:
Jan Schampera
type:
snipplet

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
}