Sed replace in file

Terminal
sed -i 's/old/new/g' <file>