In addition, text files often may not contain the new line control character.
However, there are three very useful freeware tools available for the DOS environment:
gzip -dv name.tgz
In most cases the file name is changed to name.tar. So you have to use
tar xfv name.tar
If you have downloaded a text file named gl960501.txt for example, it may not printable or cannot be properly displayed in a text editor. So, enter at the DOS command prompt:
cvtansi gl960501.txt gl960501.asc
You can use other filenames or suffixes as well. However the old and the new filename must not be the same as the file would be corrupted, e.g. cvtansi gl960501.txt gl960501.txt damages the file seriously.
C:\SUB> dir M3INFO TGZ 87760 6.05.96 18:52 C:\SUB> gzip -dv m3info.tgz m3info.tgz: 78.0% -- replaced with m3info.tar C:\SUB> tar xfv m3info.tar tar: info/ : No such file or directory x info/m3.info, 3320 bytes, 7 tape blocks x info/m3.info-1, 50085 bytes, 98 tape blocks x info/m3.info-2, 41909 bytes, 82 tape blocks tar: texinfo/ : No such file or directory x texinfo/m3info.texi, 88626 bytes, 174 tape blocks tar: www/ : No such file or directory x www/m3_1.html, 1279 bytes, 3 tape blocks x www/m3_10.html, 1779 bytes, 4 tape blocks x www/m3_11.html, 1204 bytes, 3 tape blocks x www/m3_12.html, 1737 bytes, 4 tape blocks [...]
PUBLIC INFORMATION OFFICEJET PROPULSION LABORATORYCALIFORNIA INSTITUTE OF TECHNOLOGYNATIONAL AERONAUTICS AND SPACE ADMINISTRATIONPASADENA, CALIF. 91109. TELEPHONE (818) 354-5011 GALILEO MISSION STATUS May 1, 1996 The Galileo spacecraft is operating normally in orbit around Jupiter, continuing to collect and transmit information on the magnetic field and dust environment and to prepare for the first Ganymede encounter just eight weeks away. (...)Now apply CVTANSI:
C:\SUB> cvtansi gl960501.txt gl960501.doc CVTANSI v1.02 - converts ANSI printer control codes to ASCII printer control characters. Copyright (c) 1991 by Paul McGinnis - this program may be freely distributed but may not be sold or altered.Now the text looks right:
PUBLIC INFORMATION OFFICE JET PROPULSION LABORATORY CALIFORNIA INSTITUTE OF TECHNOLOGY NATIONAL AERONAUTICS AND SPACE ADMINISTRATION PASADENA, CALIF. 91109. TELEPHONE (818) 354-5011 GALILEO MISSION STATUS May 1, 1996 The Galileo spacecraft is operating normally in orbit around Jupiter, continuing to collect and transmit information on the magnetic field and dust environment and to prepare for the first Ganymede encounter just eight weeks away. (...)
MPL UNIX TOOLS V 01.02 current as of August 12, 1999
Author: Alexander F. Walz, firstname.lastname@example.org
Original file location: http://www.math.utsa.edu/mirrors/maple/mplendos.htm