Simple String Replacement Tool in Linux

First install mysql client (replace utility is one of a tool in MySQL package).

apt-get install mysql-client

Example text in file1.txt:

I like to drink apple juice.

Replace apple with orange

$ replace apple orange -- file1.txt

output :

I like to drink orange juice.

comments powered by Disqus