I need a pause on a shell script to show a warning before continuing. For instance, on DOS it goes like this:
doit.bat:
[...]
echo 'Are you sure? Press Ctrl-C to abort, enter to continue.'
pause
[...]
How can I do this on bash? For the moment a sleep command seems to do the trick and is simple enough but is not exactly the idea:
doit.sh
[...]
echo 'Are you sure? Press Ctrl-C to abort.'
sleep 3
[...]