unix sed command replace string after specific string code example Example: replace text with sed sed -i 's/old-text/new-text/g' input.txt