From 090d3e1dd5c66460768f1959e59923e26d49145c Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 18 Jun 2026 18:37:36 +0200 Subject: mount umount no psw --- scripts/uncolor | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 scripts/uncolor (limited to 'scripts/uncolor') diff --git a/scripts/uncolor b/scripts/uncolor new file mode 100755 index 0000000..81fa743 --- /dev/null +++ b/scripts/uncolor @@ -0,0 +1,6 @@ +#!/bin/sh + +# Removes ANSI color codes from its stdin, prints to stdout. +# Source: https://stackoverflow.com/questions/17998978/removing-colors-from-output + +sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g' -- cgit v1.3