Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Closely related: What characters do I need to escape when using sed in a sh script? Commented Jan 20, 2023 at 13:34
  • 4
    Irrelevant to your main issue, but there is no need for cat, you can give grep a file, and there is also no need to escape a /, it doesn't have any special meaning in regular expressions, so you could just do grep / ca.crt. Commented Jan 20, 2023 at 13:58
  • 1
    Can you show us the full template you are using? While this is almost certainly possible with sed, it will be easier using more sophisticated tools, but we'd need the full picture to be able to help. Commented Jan 20, 2023 at 13:59
  • Related:  Is it possible to escape regex metacharacters reliably with sed?  (on Stack Overflow). Commented Jan 28, 2023 at 18:35