Below mentioned is a shell script which would dumps the content without formatting to the text file. You can copy and paste it through OOo and reformat it. Now save the same as a new file. The below mentioned command will help you to resolve all the most common corruption issues.
Code:
#!/bin/bash
unzip -oq $1 -d recovery_$1 # Extract the file
tr "<" "\012" < recovery_$1/content.xml | grep ^text \
| cut '-d>' -f2, | uniq > $1_content.txt
To execute the shell by using below mentioned command.
Code:
sh [script name] [corrupted file]
Bookmarks