What does \1 in sed do?

后端 未结 2 514
渐次进展
渐次进展 2020-12-23 20:52

I found this question really relevant to what I wanted: Parsing using awk or sed in Unix, however I can\'t figure out what the following does:

\'s/\\([,=]\\)         


        
2条回答
  •  忘掉有多难
    2020-12-23 21:49

    \(...\) would capture the characters specified inside of the parens and \1 would be used to reference the first match, this is a part of regex.

提交回复
热议问题