On Sunday 20 Sep 2009, Manvendra Bhangui wrote:
> On Sun, Sep 20, 2009 at 7:57 PM, Raj Mathur <[email protected]> 
wrote:
> >  echo -n "Hit space to continue: "
> >  read __dummy
> 
> it could be something like this
> #!/bin/bash
> ...
> ...
> echo -n "Hit space to continue"
> read -n 1 dummy
> 
> Which will cause bash to return after exactly one char is entered

That makes sense, in which case, if you have something like:

  read num
  read -n 1 dummy
  read yn

you can run the script as:

  ... <<EOF
  100
  dy
  EOF

so num gets the value "100", dummy gets the value "d" and yn gets the 
value "y".

Regards,

-- Raju
-- 
Raj Mathur                [email protected]      http://kandalaya.org/
       GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
PsyTrance & Chill: http://schizoid.in/   ||   It is the mind that moves
-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to