compat-wireless: add script to grep out colors
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Fri, 11 Jun 2010 01:19:00 +0000 (18:19 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Fri, 11 Jun 2010 01:19:00 +0000 (18:19 -0700)
This is useful for a cronjobs that do not want the
color fluff on output.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
scripts/skip-colors [new file with mode: 0755]

diff --git a/scripts/skip-colors b/scripts/skip-colors
new file mode 100755 (executable)
index 0000000..121626f
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+perl -pe 's|(\e)\[(\d+)(;*)(\d*)(\w)||g'