Hi,
I need to replace an entire mailx line as follows using sed:
sed -e 's/<line1>/<newline>/g' <filename>
But I am getting comman garbled error since the new line has many special characters. I enclosed allspecial chars in \ but still no use.
Can any one help me?
Please post examples of your input and desired output to help us help you better
Please see my code:
sed -e 's/\"`\date\`"\/\"`\date\`"\ \`\cat \$\SRC\/\mail_list\`\/g' sap_prod_test_accts.ksh1 > sap_prod_test_accts.ksh2
sed: command garbled: s/\"`\date\`"\/\"`\date\`"\ \`\cat \$\SRC\/\mail_list\`\/g