I want to insert in my script a value (string) that I would read from a text file.
For example: I have shell script
#!/bin/bash
echo "Enter your name:"
read name
echo "...and now your age:"
read age
# example of how to use the values now stored in variables $name and $age
echo "Hello $name. You're $age years old, right?"
and the input file (called input.in)
Priya
26
Thomas
44
For example: I have shell script
#!/bin/bash
echo "Enter your name:"
read name
echo "...and now your age:"
read age
# example of how to use the values now stored in variables $name and $age
echo "Hello $name. You're $age years old, right?"
and the input file (called input.in)
Priya
26
Thomas
44