sed -i 's/\sReplaceMe\s<\/td>/ | Replaced<\/td>/gi' input.file
worked for me.
you may consider using -i.bak to backup the old file, in case of a mistake.
alternatively,
perl -pi -e 's/\sReplaceMe\s<\/td>/ | Replaced<\/td>/g' temp
also works, again, note the -pi.bak to backup.
|
|