user input from shell scripts

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Bart Garst
Date:  
Subject: user input from shell scripts
Your question has already been answered, but in case you didn't already
know...

There's some pretty good How-tos available at http://tldp.org/
Search for: "Bash programming"

Bart


On Wed, 2003-10-01 at 21:58, Mike Starke wrote:
> I am trying to convert a couple perl scripts to simple
> shell scripts (nothing but a simple excercise for myself).
>
> The basic format I have always used went something like this:
>
> print "Enter Your Name: ";
> $name = <STDIN>;
> chomp $name;
>
> Would the following be the proper way for bash?
>
> echo "EnterYour Name: "
> read -e NAME
> echo $NAME
>
> --
> -Mike
>
> :wq!
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss