[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ddrescue] Perl script to modify ddrescue log files
From: |
Antonio Diaz Diaz |
Subject: |
Re: [Bug-ddrescue] Perl script to modify ddrescue log files |
Date: |
Tue, 18 Oct 2011 14:00:16 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 |
Hello Burkart,
Burkart Lingner wrote:
For my suite of data recovery scripts (more on that some other time) I
needed a way to modify the type of a certain block in ddrescue's log
file.
I am currently adding new features to ddrescuelog and this could be one
of them. It could be implemented like this:
ddrescuelog -i<start> -s<size> --change-types=<old_types>,<new_types>
logfile > new_logfile
This would change all blocks in domain (<start>, <size>) from one type
in <old_types> to the corresponding type in <new_types>, much like the
"tr" command does.
What do you think?
Regards,
Antonio.