What other parameters other than \U does sed have?

后端 未结 2 1671
情歌与酒
情歌与酒 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条回答
  •  野趣味
    野趣味 (楼主)
    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.

提交回复
热议问题