Sed - 如何替换特殊字符

Sed - 如何替换特殊字符

我有以下文本可替换For More Question Papers - Join Youtube " somechannel"为无。我使用以下命令失败了。

sed -r -e "s/For More Question Papers - Join Youtube \" somechannel\"/ /" ldcq.pdf > unwatermarked.pdf

sed -e "s/For More Question Papers - Join Youtube \" somechannel\"/ /" ldcq.pdf > unwatermarked.pdf

sed -e 's/For More Question Papers - Join Youtube " somechannel"/ /' ldcq.pdf > unwatermarked.pdf

sed -e "s/For More Question Papers - Join Youtube " somechannel"/ /" ldcq.pdf > unwatermarked.pdf

任何修复表示赞赏。

相关内容