mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-19 02:22:09 +08:00
11 lines
247 B
Bash
Executable File
11 lines
247 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# use th is 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
|