Article View: aus.computers.linux
Article #57028Re: BASH scripts.
From: Steve Merrifield
Date: Mon, 25 Nov 1996 00:00
Date: Mon, 25 Nov 1996 00:00
28 lines
1048 bytes
1048 bytes
Andrew Matherl (amsm@deakin.edu.au) wrote:
: G'day Again,
<snip>
: This may be a foolish question, but is there a command similar to the
: DOS "pause" that will halt execution of the script and then start it
: again when the enter(or any other) key is pressed ?
Try these...
#!/bin/sh
echo "Press ENTER to continue"
read
or
#!/bin/sh
echo "Enter a string..."
read junk;
echo 'You typed'
echo $junk;
_ ___ _ _ _ _ _
/ ) ( _)/\/ )/ / )| |/ ) Steve Merrifield VK3ESM
/ / _/ / / // / / / / sjm@ee.latrobe.edu.au
(___)(___)(_/\/ \__/ (_/|_| http://livewire.ee.latrobe.edu.au
Technical Details
Message-ID:
<57b4i3$2er@news.latrobe.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<576hq0$jnq@miranda.its.deakin.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,de88c444ecbadd8b X-Google-Attributes: gid102983,public From: sjm@ee.latrobe.edu.au (Steve Merrifield) Subject: Re: BASH scripts. Date: 1996/11/25 Message-ID: <57b4i3$2er@news.latrobe.edu.au> X-Deja-AN: 198517975 references: <576hq0$jnq@miranda.its.deakin.edu.au> organization: La Trobe University newsgroups: aus.computers.linux