git.iko.soy/typeable/pandoc
on master help sign in
Removed stripansi.sh.
commit4ebfc8ae2e9b01a937a8ffac4f91e2b9b5af8b4c authorJohn MacFarlane <fiddlosopher@gmail.com> dateTue 13 Mar 2012, 08:39 (15 years ago) parentacb267e
1 file changed+2−6
stripansi.sh+2−6
stripansi.sh+2−6
@@ -1,10 +1,6 @@
11#!/bin/sh
22
3−# use th is to strip out ANSI codes, if you want to pipe
3+# use to strip out ANSI codes, if you want to pipe
44# outputof 'cabal test' to a file.
55
6−if which -s gsed; then
7− gsed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"
8−else
9− gsed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"
10−fi
6+sed -e 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g'