Unix: In-place search and replace in a file

Published:
$ sed -i s/search/replace/g file