replace all words in file linux code example
Example 1: linux replace string in all files
sed -i 's/old-text/new-text/g' input.txt
Example 2: replace word in file linux command
sed -i 's_oldword_replaceword_gI' document_name.txt
sed -i 's/old-text/new-text/g' input.txt
sed -i 's_oldword_replaceword_gI' document_name.txt