sed command to replace string with special characters = sign code example Example: replace text with sed sed -i 's/old-text/new-text/g' input.txt