From 6f2676c0d6f576fa7ddec0284104df41209b7d18 Mon Sep 17 00:00:00 2001 From: mikec Date: Thu, 4 Jun 2009 16:36:51 +0000 Subject: [PATCH] script to remove color coding information from an asterisk screen log git-svn-id: svn://192.168.202.10@1143 3d104415-ff17-0410-8863-d5cf3c621b8a --- extras/strip_color.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 extras/strip_color.sh diff --git a/extras/strip_color.sh b/extras/strip_color.sh new file mode 100644 index 00000000..575f6e0c --- /dev/null +++ b/extras/strip_color.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +FILE=$1 + +cat $FILE | sed "s/\[.;..;..m//g" | tr -d "\033" > $FILE.nocolor \ No newline at end of file