Timeline for Using sed to edit filepath variable
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 5 at 18:02 | history | rollback | Destroy666 |
Rollback to Revision 2
|
|
S Jul 5 at 15:59 | history | rollback | Abbatrombone |
Rollback to Revision 1 - Edit approval overridden by post owner or moderator
|
|
Jul 5 at 15:58 | vote | accept | Abbatrombone | ||
Jul 5 at 10:22 | history | became hot network question | |||
Jul 5 at 9:33 | history | suggested | David Anderson | CC BY-SA 4.0 |
Added some punctuation.
|
Jul 5 at 8:48 | answer | added | David Anderson | timeline score: 2 | |
Jul 5 at 8:11 | review | Suggested edits | |||
S Jul 5 at 15:59 | |||||
Jul 5 at 6:21 | review | Close votes | |||
Jul 10 at 3:01 | |||||
Jul 5 at 5:59 | comment | added | Destroy666 | 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. | |
Jul 5 at 4:36 | comment | added | David Anderson |
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.
|
|
Jul 5 at 2:47 | comment | added | Abbatrombone |
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.
|
|
Jul 5 at 2:32 | comment | added | David Anderson |
try sed -i "s|${filepath}|${correctfilepath}|g" $Dir/.git/config
|
|
Jul 5 at 2:09 | history | asked | Abbatrombone | CC BY-SA 4.0 |