Making a shell script survive quit

windows 7 and 8 batch files have a TIMEOUT command, but earlier versions did not, so folks would make do with a PING command to localhost as a way to fake a delay.

You could use something like this:

echo "here we go, waiting 10 seconds"
TIMEOUT 10
echo "hit any key to exit"
PAUSE
CLS
EXIT

See http://www.robvanderwoude.com/wait.php