dd_rescue/dd_rhelp_EOF.diff

21 lines
754 B
Diff
Raw Normal View History

--- dd_rhelp.orig 2011-05-14 20:17:10.782000079 +0300
+++ dd_rhelp 2011-05-14 20:18:26.578000081 +0300
@@ -906,7 +906,7 @@
string="^Summary for $infile -> $outfile:"
infoline="^dd_rescue: (info):"
-eofstring="$infoline $infile ([0-9]\+\.[0-9]k): EOF\$"
+eofstring="$infoline .* ([0-9]\+\.[0-9]k): EOF.*\$"
nb_stars=$[ $bar_lines * $COLUMNS ] # nb of char to display progress bar...
#
@@ -990,7 +990,7 @@
function get_eof()
{
- eoflines="$("${cat}" "$logfile" | "${tr}" -d "\\r" | "${grep}" "$eofstring" | "${sed}" 's/^dd_rescue: (info): .* (\([0-9\.]\+\)k): EOF$/\1/g')"
+ eoflines="$("${cat}" "$logfile" | "${tr}" -d "\\r" | "${grep}" "$eofstring" | "${sed}" 's/^dd_rescue: (info): .* (\([0-9\.]\+\)k): EOF.*$/\1/g')"
eof="nothing"