2011-10-05 12:36:13 +00:00
|
|
|
Index: dd_rhelp-0.1.2/dd_rhelp
|
|
|
|
===================================================================
|
|
|
|
--- dd_rhelp-0.1.2.orig/dd_rhelp
|
|
|
|
+++ dd_rhelp-0.1.2/dd_rhelp
|
|
|
|
@@ -904,7 +904,7 @@ fi
|
2010-11-05 16:21:02 +00:00
|
|
|
|
|
|
|
# regexp for parsing the log file.
|
|
|
|
|
|
|
|
-string="^Summary for $infile -> $outfile:"
|
|
|
|
+string="^dd_rescue: (info): Summary for $infile -> $outfile:"
|
|
|
|
infoline="^dd_rescue: (info):"
|
|
|
|
eofstring="$infoline .* ([0-9]\+\.[0-9]k): EOF.*\$"
|
|
|
|
nb_stars=$[ $bar_lines * $COLUMNS ] # nb of char to display progress bar...
|
2011-10-05 12:36:13 +00:00
|
|
|
@@ -1472,7 +1472,7 @@ function process_log() {
|
2010-11-05 16:21:02 +00:00
|
|
|
|
|
|
|
[ "$DEBUG" == "on" ] && echo -n "- cleaning data ["
|
2011-09-05 14:26:36 +00:00
|
|
|
# XXXVaab : bad if file is less that 0.1Ko length
|
|
|
|
- data=$(echo "$data" | "${grep}" -v "xferd: \+0.0k$")
|
|
|
|
+ data=$(echo "$data" | "${grep}" -v "xferd: \+0.0k$" | "${grep}" -v "$string")
|
2010-11-05 16:21:02 +00:00
|
|
|
[ "$DEBUG" == "on" ] && echo -n "."
|
2011-09-05 14:26:36 +00:00
|
|
|
data=$(echo "$data" | "${grep}" "$infoline" -A 1 | "${cut}" -c 12-)
|
2010-11-05 16:21:02 +00:00
|
|
|
[ "$DEBUG" == "on" ] && echo -n "."
|