Skip to content

Instantly share code, notes, and snippets.

@patharanordev
Created April 10, 2021 13:55
Show Gist options
  • Select an option

  • Save patharanordev/675d43e75af4886e438d3c57a68b42bd to your computer and use it in GitHub Desktop.

Select an option

Save patharanordev/675d43e75af4886e438d3c57a68b42bd to your computer and use it in GitHub Desktop.
Simple press key to continue new shell script
echo "Press 'q' to continue"
count=0
while : ; do
read -n 1 k <&1
if [[ $k = q ]] ; then
break
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment