From: Luis R. Rodriguez Date: Fri, 11 Jun 2010 01:19:00 +0000 (-0700) Subject: compat-wireless: add script to grep out colors X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bff1e5d501a9643ae03618ba40848b1d85449197;p=openwrt%2Fstaging%2Fblogic.git compat-wireless: add script to grep out colors This is useful for a cronjobs that do not want the color fluff on output. Signed-off-by: Luis R. Rodriguez --- diff --git a/scripts/skip-colors b/scripts/skip-colors new file mode 100755 index 000000000000..121626fb161c --- /dev/null +++ b/scripts/skip-colors @@ -0,0 +1,2 @@ +#!/bin/bash +perl -pe 's|(\e)\[(\d+)(;*)(\d*)(\w)||g'