Replace text in place

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