diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2026-06-18 18:37:36 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2026-06-19 08:31:45 +0200 |
| commit | 090d3e1dd5c66460768f1959e59923e26d49145c (patch) | |
| tree | c3dd5609f7cf06d5ab48d0bc43d1714ec6309b85 /scripts/uncolor | |
| parent | 261d56d343386e520a752281a671028e708960bc (diff) | |
| download | config-090d3e1dd5c66460768f1959e59923e26d49145c.tar.gz config-090d3e1dd5c66460768f1959e59923e26d49145c.zip | |
mount umount no psw
Diffstat (limited to 'scripts/uncolor')
| -rwxr-xr-x | scripts/uncolor | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/uncolor b/scripts/uncolor new file mode 100755 index 0000000..81fa743 --- /dev/null +++ b/scripts/uncolor | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Removes ANSI color codes from its stdin, prints to stdout. | ||
| 4 | # Source: https://stackoverflow.com/questions/17998978/removing-colors-from-output | ||
| 5 | |||
| 6 | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' | ||
