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