[ML-Ubuntu] Re: [ML-Ubuntu] Bash Script Help

Uli Wachowitz uli at wach-o-witz.de
Sat Oct 29 18:40:18 UTC 2005


"David M. Carney" <carney1979 at gmail.com> schrieb: 
>I just need to have it stop and wait for a keypress (any key).

Any key? Sorry, I don't have this key on my board ;-)

try this:

  read -p "Press [RETURN] to continue" >/dev/null

or a little more obfuscating: 

  echo "Press [RETURN] to continue"; read a; case $a in *);; esac

Sorry for the last one, CNR

Uli






More information about the ubuntu-users mailing list