how to pause script until a key is pressed

Hello,

A travelers hint, pause your script until a key is pressed

#!/bin/bash
# Date: 13.04.08
# Author: bash@roshankarki.com.np
# Purpose: Demonstrate how to pause script until a key is pressed

clear
echo The screen is now paused
read -n 1
echo You pressed a key

#END


man read to see how it works.

Comments

Popular posts from this blog

Perm Root HTC Desire Gingerbread 2.3.3

Easily Crack WPA Or WPA2 PSK Under 10 Hours

Essential adb Command Examples