Skip to content

Instantly share code, notes, and snippets.

@james2doyle
Created March 4, 2014 14:19
Show Gist options
  • Save james2doyle/9347269 to your computer and use it in GitHub Desktop.
Save james2doyle/9347269 to your computer and use it in GitHub Desktop.
bash implementation of "press any key to continue"
#!/bin/bash
read -n 1 -r -s -p "Press any key to continue..."
# this will fire after the key is pressed
echo "\ncool"
exit 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment