Skip to content

Commit

Permalink
Removed stripansi.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
John MacFarlane committed Mar 13, 2012
1 parent acb267e commit 4ebfc8a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions stripansi.sh
@@ -1,10 +1,6 @@
#!/bin/sh

# use th is to strip out ANSI codes, if you want to pipe
# use to strip out ANSI codes, if you want to pipe
# outputof 'cabal test' to a file.

if which -s gsed; then
gsed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"
else
gsed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"
fi
sed -e 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g'

0 comments on commit 4ebfc8a

Please sign in to comment.