Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Great answer, merci. Not quite sure about the POSIX compliance of cmd.exe … probably not quite on 2024 level yet. :) Also, in practice, the means of passing literal ESC control characters are somewhat limited. But anyway, that doesn't matter as I don't have a practical problem as there are other ways to match the ESC character. The issue is only about concordance between manual and implementation. Either one would have to be adapted, I think. Commented Sep 24 at 8:52
  • 1
    @Lumi, Microsoft's CMD.EXE would be off-topic here, but you can install a number of Unix shells (POSIX-compliant or otherwise) and GNU sed via Cygwin which is on topic here. Commented Sep 24 at 9:13