Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.9k views
in Technique[技术] by (71.8m points)

Problem with replacing text in sed containing "|"

I am trying to replace "watermarks" to nothing from my pdf using sed command to increase text size on my e-reader, but when i try to replace it stays becouse it have | character in the middle. The text i want to replace with nothing is:

  • "Company | exampl3.com"
  • "Page 1" > "Page xxx"

The commands i was trying to use:

pdftk PDF.pdf output PDF_UN.pdf uncompress

sed -i 's/Company | exampl3.com//g' PDF_UN.pdf

When i try to replace some words or/and sentences it works fine and is fast.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...