LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   convert msdos gzip to linux gzip (https://www.linuxquestions.org/questions/linux-newbie-8/convert-msdos-gzip-to-linux-gzip-4175460593/)

PoleStar 05-03-2013 11:12 AM

convert msdos gzip to linux gzip
 
How do I convert msdos gzip, in linux gzip.



Code:

root:~ $ gzip -dc  XXX.txt.gz

gzip: XXX.txt.gz: not in gzip format



 root:~ $ file  XXX.txt.gz
XXX.txt.gz: MS-DOS executable (built-in)

Thank you.

jdkaye 05-03-2013 11:26 AM

Hmmm. I don't think there is an MS-DOS version of gzip. Maybe the file is really an MS executable .exe file that got mislabelled. Can you try it on an MSDOS machine?
jdk

PoleStar 05-03-2013 11:41 AM

:(

I see. Let me find windows machine.

jdkaye 05-03-2013 12:01 PM

I know that some MSDOS zip files are .exe files which linux can handle. I'm not sure of the details (I don't know much about Windows) but you can look them up.
jdk

rknichols 05-03-2013 01:08 PM

It might be a self-extracting ZIP (not gzip) file. If so, the Linux unzip command should be able to handle that.

jefro 05-03-2013 07:08 PM

Might try dosbox, or wine to see if will expand.

I might be tempted to try 7-zip.

PoleStar 05-05-2013 04:43 PM

ok, that data file was from an appliance.
I found out they recently change from standard linux utilities to their own packaging + utilities.\
They modified usual decompressing tools and rename them just for them self.

So issue is resolved.

Thank you all.


All times are GMT -5. The time now is 07:28 PM.