I have a text file which have lots of lines I have a line in it which is: MyCar on
how can I turn my car off?
Advertisement
Answer
You could use sed:
sed -i 's/MyCar on/MyCar off/' path/to/file
I have a text file which have lots of lines I have a line in it which is: MyCar on
how can I turn my car off?
You could use sed:
sed -i 's/MyCar on/MyCar off/' path/to/file