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.

4
  • try sed -i "s|${filepath}|${correctfilepath}|g" $Dir/.git/config Commented Jul 5 at 2:32
  • that did not work its a file/path not file|path the reason i was using | is because from my understanding the character after s is the delimiter. Commented Jul 5 at 2:47
  • 1
    In your question, you have sed -i "s|${filepath}/${correctfilepath}|g" $Dir/.git/config. In this command, the delimiter | only appears twice. I believe the delimiter needs to occur three times. Commented Jul 5 at 4:36
  • What didn't work? Edit the question with proper syntax mentioned above and error/problem you're getting. "didn't work" doesn't help anyone including yourself.
    – Destroy666
    Commented Jul 5 at 5:59