From 293e60bfba1211835492c0ae0eb48ec829cc0de9 Mon Sep 17 00:00:00 2001 From: Daniel van der Schuur <schuur@astron.nl> Date: Wed, 4 May 2016 14:48:03 +0000 Subject: [PATCH] -Using Sed to get rid of color coding chars --- tools/quartus/run_regtest_synth | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/quartus/run_regtest_synth b/tools/quartus/run_regtest_synth index d1d5a62098..062b6e1bfd 100755 --- a/tools/quartus/run_regtest_synth +++ b/tools/quartus/run_regtest_synth @@ -56,7 +56,6 @@ SVN_DIR=${HOME}/SVN_$(date -d "today" +"%Y%m%d") unb_info $0 "Copying local SVN dir to ${SVN_DIR}" unb_exec $0 cp -r ${SVN}/ ${SVN_DIR} export SVN=${SVN_DIR} -SVN=${SVN_DIR} ############################################################################### # Disable exit on unb_error (used in unb_exec) @@ -121,6 +120,7 @@ MESSAGE="\ ${NOF_RBF_REQ} RBF files required\n\ ${NOF_RBF} RBF files generated:\n\ ${FOUND_RBF}\n" -LOG=$(cat ${LOGFILE}) +# Cat the logfile and use Sed to get rid of color coding characters +LOG=$(cat ${LOGFILE} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g") SUBJECT="[REGTEST] Synthesis Result: ${RESULT}" printf "${MESSAGE} \n ${LOG}" | mail -s "${SUBJECT}" ${RECIPIENTS} -- GitLab