I already knew sed
\'s \\1
, \\2
, ... , \\n
and recently discovered that it has a useful \\U
option to create
Quite possibly you want one of these fine GNU sed document sections:
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.