Exit script gracefully
This page was last updated on April 4, 2012.
- This script reads the response to a prompt, displays a comment containing the response, pauses for 2 seconds, and then the terminal window closes.
-
echo "Type your name to close terminal window"; read name; echo; echo "Goodbye, $name. I hope you enjoyed this script."; sleep 2;
Obligatory Happy Ending
And they all lived happily ever after. The end.
