Mercurial > repos > bgruening > text_processing
diff grep.xml @ 2:fc862d5bccaf draft
Uploaded
author | bgruening |
---|---|
date | Thu, 05 Sep 2013 12:42:48 -0400 |
parents | a4ad586d1403 |
children | 7068d1548234 |
line wrap: on
line diff
--- a/grep.xml Thu Sep 05 11:42:27 2013 -0400 +++ b/grep.xml Thu Sep 05 12:42:48 2013 -0400 @@ -5,8 +5,8 @@ <requirement type="package" version="2.14">gnu_grep</requirement> <requirement type="set_environment">UNIX_TOOLS_SCRIPT_PATH</requirement> </requirements> - <command interpreter="sh"> - #if $color == "COLOR": + <command> + #if str($color) == "COLOR": GREP_COLOR='1;34' grep --color=always -P "$@" -- "${url_paste}" '${input}' | \$UNIX_TOOLS_SCRIPT_PATH/ansi2html.sh > "${output}" #else: grep -P "$@" -- "${url_paste}" '${input}' | grep -v "^--$" > "${output}"