Hi all,
I have a script in file1 which gets input from the user say variable "TYPE". This variable is present in the other file2. I want to replace the variable in the file2 with the value given by the user and print the file. How can I achieve this task?
file1
code
echo "Give the type"
read TYPE
file two
code
echo "$TYPE"
input
newfile
expected output when I cat the file2
newfile
Thanks in advance
Ananth