Sed — replace in file linux

In-place global string replacement

sed -i 's/old-string/new-string/g' file.txt