sed replace in file

Shell
sed -i 's/foo/bar/g' hello.txt
Source

Also in Shell: