create pause between commands in a script:
================================
You could create a function for it:
pause(){
read -n1 -rsp $'Press any key to continue or Ctrl+C to exit...\n'
}
Then you can use this everywhere in your script:
pause
================================
================================
You could create a function for it:
pause(){
read -n1 -rsp $'Press any key to continue or Ctrl+C to exit...\n'
}
Then you can use this everywhere in your script:
pause
================================
No comments:
Post a Comment