sed -i 's/search_string/replace_string/' filename
sudo nano file.text
sed -i -e 's/abc/XYZ/g' /tmp/file.txt