From 7745b3c00403e47645153d57207cbc8a90cb0001 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 29 May 2009 00:19:46 +0000 Subject: [PATCH] code cleanup for sed for logging --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index 7d5191b..aa68dde 100755 --- a/inxi +++ b/inxi @@ -779,7 +779,7 @@ log_function_data() # Create any required line breaks and strip out escape color code, either ansi (case 1)or irc (case 2). # This pattern doesn't work for irc colors, if we need that someone can figure it out if [[ $B_LOG_COLORS != 'true' ]];then - echo -e "${spacer}$logged_data" | sed 's/\x1b\[[0-9]\{1,2\}\(;[0-9]\{1,2\}\)\{0,2\}m//g' >> $LOG_FILE + echo -e "${spacer}$logged_data" | sed -r 's/\x1b\[[0-9]{1,2}(;[0-9]{1,2}){0,2}m//g' >> $LOG_FILE else echo -e "${spacer}$logged_data" >> $LOG_FILE fi