Script input from File using <

my shell script is taking inputs like

#./makeit.sh 
Enter Your First Name:  Me 
Enter Your Last Name:  Me
Enter Your Address: My City
Enter Your Phone Number: 394859

Hi Me, Me
You live in My City and your Phone Number is 394859

However When I run the script with input redirection using

 < 

operator, it simply reverts back to me with this

#./makeit.sh <answers
Hi Me, Me
You live in My City and your Phone Number is 394859

my answers file looks like this

#cat answers
Me
Me
My City
394859

Question is: When taking input from file, the interactive questions/answer is not shown and I don't see what is going on.

This is just simulation -- actual script takes a lot longer list of options

Please always add info on your system, like OS and shell versions, and the (relevant part of the) script as well, to keep people from guessing.

My guess is you're using bash 's read -p builtin. man bash :

my apologies

Its a Centos-7 Box with both BASH and SH available.

I want to display the inputs as well when the input is coming from a file ( only when the input is coming from file not in interactive mode of execution of script)

#./makeit.sh <answers
Please enter Your First Name: NAME
Please enter Your Last Name:  LNAME
Please enter your Address:   PASRUR
Please enter your phone number: 23456
NAME, LNAME
PASRUR, 23456