On Thu, Nov 29, 2007 at 03:22:10PM -0800, Carl Keil wrote:
> Hi Folks,
> 
> I'm trying to retrieve some deleted files from a BackUpPC backup.  The
> backup was deleted, but not much has been written to the drive since the
> backup.  This is an ext3 file system, so I'm forced to use the grep an
> unmounted drive method of retrieval.
> 
> Does anyone know a way to have grep return everything between two retrived
> strings?  Like everything between "tuxpaint" and "end".  I'm trying to
> retrieve PNG files.  Can you describe to me the tools and syntaxes I'd
> need to employ to accomplish such a feat?  I'm familiar with the command
> line, I've gotten grep to return some interesting results and I know about
> piping commands, but I can't quite figure out the steps to extract these
> pngs from the raw hard drive.

instead of grep, how about the command:
   perl -ne 'print if /tuxpaint/../end/'

That would be a filter to print the lines from the one matching the
regexp /tuxpaint/ to the one matching /end/.

It'll work as a filter like grep does; either specify filenames at the 
end of the command line or pipe something into it.

-- 
Steve Willoughby    |  Using billion-dollar satellites
[EMAIL PROTECTED]   |  to hunt for Tupperware.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to