[Zope] Restore files from Data.fs.tr0 SOLVED
Jaroslav Lukesh
lukesh at seznam.cz
Mon Mar 18 19:36:03 UTC 2013
This simple script and diff and manual changes against appropriate files.
#!/var/zope/python/bin/python
f = open("Data.fs.tr0", "r+ab")
c = f.read()
s='__name__q'
a = c.split(s)
i = 0
print(len(a))
for polozka in a:
i = i + 1
fn = 'vystup_' + str(i)
x = open(fn,"ab")
x.write(polozka)
x.close()
f.close()
Lucky that it was no much of filenames. Select both files in Total
Commander, then File - Diff - uncheck binary and check again - Edit, helps a
lot.
For bigger truncated slices it could be better to do it with filename
support etc.
Regards, JL.
More information about the Zope
mailing list