Find and Replace string using sed command in shell

by rajesh 2014-05-13 20:07:04

We can use sed command to find and replace string in a file
sed -i 's/find-string/replace-string/g' filename
The above command will replace all find-string with replace-string in the file named filename.
1167
like
0
dislike
0
mail
flag

You must LOGIN to add comments