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*

15
  • that doesn't work on mac. i get the error: command i expects \ followed by text the examples i see use single quotes like this in the post: stackoverflow.com/questions/25631989/…. but it doesn't work with the double quotes like you posted. would be glad to try something else? Commented Oct 25, 2018 at 18:51
  • Oh sorry, I forgot that when you use double quotes you also need to escape the backslashes and add additional backslashes to the double quotes in the string itself. I've updated the answer accordingly. Commented Oct 25, 2018 at 19:04
  • Never mind that... what needed escaping was just the initial backslash. Try it now. Commented Oct 25, 2018 at 19:14
  • Did the last edit work? If so I would appreciate it if you marked it as the answer. Commented Oct 30, 2018 at 16:06
  • sed works in that i can replace the text i want. but my question was how to insert a tab with sed at a specific line. but yes i do mark questions as answered once they are answered. Commented Oct 30, 2018 at 16:08