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