msamendinger
Follow
Pinned Loading
-
sed slash madness
sed slash madness 1# what happens when we want to replace a string with a variable with a forward slash in its value?
2$ var1="test/string"
3$ echo "this is a test" | sed "s/test/$var1/"
4sed: 1: "s/test/test/string/g": bad flag in substitute command: 's'
5# set has delimiter confusion let's use another delimiter
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.