vigeeking / homeAutomation

My goal is to create a pipeline that is built exclusively with tools I either already know, or am only learning because they provide added value to the project
https://github.com/vigeeking/homeAutomation
0 stars 0 forks source link

Data recovery #74

Closed vigeeking closed 4 years ago

vigeeking commented 4 years ago

This is not strictly related to home automation, but I wanted some documentation for it anyway for reasons. Friend of a friend lost a book she was working on, and I've been trying to recover it. I was not able to (she was working for 40+ hours on an autorecovery document and never saved it), but she found a bunch of .docx files. I manually converted them over to .zip and then repaired them, but they weren't what we were looking for. I'm going to see if I can automate that process. This task is done when I have a script that will take the files and automatically run the repair program.

vigeeking commented 4 years ago

So, general step is to manually rename the files to a sequential order and make them .zip, then run a variation of this: zip -FF lastchance.zip --out please.zip

I wonder if I can do a zip -FF file[1-15].zip --out file[1-15].zip to start out with.

vigeeking commented 4 years ago

This is what worked (with some manual intervention)

!/bin/bash

for x in {1..26} do zip -FF -v file$x.zip --out out$x.zip done