The current file can be edited with `v` already, but this doesn't work when reading from stdin.
9 lines
195 B
Sed
Executable File
9 lines
195 B
Sed
Executable File
#!/bin/sed -f
|
||
# SPDX-License-Identifier: MIT
|
||
# Copyright (c) 2025 Julian Prein
|
||
#
|
||
# Remove ANSI SGR (Select Graphic Rendition) escape sequences, e.g. setting
|
||
# color or bold font.
|
||
|
||
s/\[[^m]*m//g
|