Re: gzip file ftp'ed as ascii...
- From: James <az@xxxxxxxxxxxxx>
- Date: Wed, 17 Aug 2005 10:55:10 +0100
Brian Raiter wrote:
Is this or an equivalent gzip fixer available anywhere?
I've a 750M file, a .tar.gz on linux.
fixgz or ftp'ing as ascii again don't help.
There are 11097 CR/LF pairs in the file...
Did you ftp as ascii from MS to Unix, or from Unix to MS? The former would probably be nearly impossible to fix; the latter might be salvaged by running it through the following Perl program:
perl -i.bak -pe 's/\r\n/\n/g' munged.tar.gz
You mention ftping as ascii again didn't help -- did you try ftping in the opposite direction as the first time?
The transfer was ftp, accidentally in ascii mode, from Linux Mandrake 8.0 to Linux Debian 1:3.3.5-12.
I've been doing some further experiments.
Whenever the byte pair 0D 00 appears in my test source file, the destination file only has OD. The ftp process has deleted the trailing 00.
To restore this file I need to know if there is enough information in the gzip format to detect which OD bytes need the trailing 00 adding back.
Best Wishes, James
-- "Be excellent to each other", Bill & Ted .
- Follow-Ups:
- Re: gzip file ftp'ed as ascii...
- From: Brian Raiter
- Re: gzip file ftp'ed as ascii...
- From: Willem
- Re: gzip file ftp'ed as ascii...
- References:
- gzip file ftp'ed as ascii...
- From: James
- Re: gzip file ftp'ed as ascii...
- From: Brian Raiter
- gzip file ftp'ed as ascii...
- Prev by Date: Re: How to recompress existing zip files with a higher level of compression
- Next by Date: Re: gzip file ftp'ed as ascii...
- Previous by thread: Re: gzip file ftp'ed as ascii...
- Next by thread: Re: gzip file ftp'ed as ascii...
- Index(es):
Relevant Pages
|
|