What other parameters other than \U does sed have?

后端 未结 2 1672
情歌与酒
情歌与酒 2021-01-15 15:46

I already knew sed\'s \\1, \\2, ... , \\n and recently discovered that it has a useful \\U option to create

相关标签:
2条回答
  • Quite possibly you want one of these fine GNU sed document sections:

    • Backreferences, in regular expressions
    • GNU Extensions for Escapes in Regular Expressions
    0 讨论(0)
  • 2021-01-15 16:31

    According to the links CodeGnome passed, those are:

    \L Turn the replacement to lowercase until a \U or \E is found,

    \l Turn the next character to lowercase,

    \U Turn the replacement to uppercase until a \L or \E is found,

    \u Turn the next character to uppercase,

    \E Stop case conversion started by \L or \U.

    0 讨论(0)
提交回复
热议问题