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*

7
  • Great, that seems to do the trick... any idea how I could include that newline in a makefile? Commented Feb 19, 2018 at 3:57
  • @JohnEricksen if you split it into two -e expressions, you can avoid the newline, see updated answer. Commented Feb 19, 2018 at 4:03
  • Hmm, I'm getting a bash: !ba}: event not found from the latest command. Commented Feb 19, 2018 at 4:08
  • Did you use double quotes instead of single quotes? Commented Feb 19, 2018 at 4:11
  • 2
    @JohnEricksen Remember you need to escape $ in a makefile by using $$. You can also add -i to the sed to actually change file. Commented Feb 19, 2018 at 8:00