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
  • 1
    Don't use | as separator for s in vim. | there separates commands. Commented Jan 10, 2023 at 5:39
  • 1
    It works for me with GNU sed on your sample. Maybe that space is a TAB in your actual input. You can check with sed -n l example.txt Commented Jan 10, 2023 at 6:02
  • @Kusalananda the input is 2 lines, and the output is also 2 lines of the same result sd://prod1-backup/some_notes_here Commented Jan 10, 2023 at 7:29
  • @StéphaneChazelas yes i just checked and it is a TAB! is that why sed is not working? Commented Jan 10, 2023 at 7:34