Advertisement
xzlui

Using Pause in Bash Shell Script

Dec 19th, 2017
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. main() {
  4.     echo "Hello World!"
  5.     pause
  6. }
  7.  
  8. pause() {
  9.     echo "Press ENTER to continue..."
  10.     read -sp "$*"
  11. }
  12.  
  13. main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement