Remember, the forward slash is not a metacharacter, so it doesn't need to be backslashed when it's not the delimiter 斜干/不是特殊的符號(hào),他沒必要在前面加反斜干(\),當(dāng)他不是定界符的時(shí)候
To do this, we surround those " interesting parts " with backslashed parentheses, so that we can refer to them in our replacement string using-1,-2-, and-3 to tell sed where to insert them 要這樣做,我們用帶有反斜杠的圓括號(hào)括起那些“感興趣部分”,以便可以在替換字符串中引用它們(使用\1、\2\和\3來(lái)告訴sed將它們插入到何處)。