csh to bash

how do you say this csh statement
  USER_REPLY = $<    
in bash?  that's to get user input while running the script,
not from command line arguments.
akeimouAsked:
Who is Participating?
 
SEveConnect With a Mentor Commented:
#!/usr/bash

read
# data from stdin stored in $REPLY
echo Got from stdin $REPLY

or alternative:
read USER_REPLY
echo Got from stdin $USER_REPLY

seve

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.