ubuntu command line replace word in files

Shell
sed -i 's/foo/bar/g' hello.txtsed -i 's/original/new/g' file.txt

Source

Also in Shell: