linux replace string in all files

Shell
sed -i 's/old-text/new-text/g' input.txt
Source

Also in Shell: