Tuesday, January 10, 2017

create pause between commands - bash scripting

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
================================



No comments:

Post a Comment