replace text with sed code example Example: replace text with sed sed -i 's/old-text/new-text/g' input.txt