I am trying to read input from user and update a .txt file by replacing a word. Is there any possibility to do that? If there please help me. I want this to done using SHELL Script on Ubuntu OS.
Example:
I want to replace the word "Kid" From the below .Txt file with a user input "boys".
.Txt file content:
I love that kid that they are playing on the ground.
Step by Step :
- Start the Shell Program.
- Receive a Input from user to $a.
- Read .txt file and find the word "Kid".
- Replace the "Kid" Word from the .txt file with the user input $a.
That's all I want to do.