On Fri, Sep 10, 1999 at 04:46:19PM -0300, Miguel G. wrote:
> Hi!
> I'm kind of desperated as a lot o (my) work is in this.
> 
> I'was woking with some html files, backed up with
> gzip -c * > backup.gz
> 
> I need now to get files back from there and cannot figure out how, could
> anyone please help me ?

You can't without some editing by hand.

In the future, use "tar cvzf backup.tgz <files>" for your backups.

First, use: "gunzip backup.gz". This will create "backup", all your html 
files in one big file, like you had said "cat *.html > backup".

Second, use: "csplit -b %d.html backup '/<html>/' '{*}'" to split "backup".
The files are named "xx<number>.html".

If you have used <!doctype ....> at the start of your html-files, you
can try: "csplit -b %d.html backup '/<!doctype/' '{*}'" to split the file.

Now you have to rename (by hand) all the xx<nn>.html files to their original
names.

Good luck,
Cees.

Reply via email to