Information about me and my services Download free programs Goto homepage of Jeroen Kessels, internet engineer Hobby area Email, address, and phone information Copyright 2005 J.C. Kessels Goto homepage of Jeroen Kessels, internet engineer Email, address, and phone information


Txt2 v1.5


Translate text files between Windows/Dos, Unix, and Mac format's. A line in a DOS text is closed with a CarriageReturn+Linefeed, Unix uses Linefeed, Mac uses CarriageReturn. When html pages are moved from one platform to another (for example from Windows to a Unix server) then the CarriageReturn's and Linefeed's have to be translated. Txt2 will recognise automatically where the file came from, and write the file back in the wanted format. And Txt2 will automatically correct files that have collected certain errors due to improper translation.

 *  Download txt2-1.5.zip for Windows 95/NT (92kb)
 *  Download txt2-1.5.tar.gz for Unix (4kb)

The program is a command-line utility, and will run in Windows 95/NT and just about any flavor of Unix. Sources are included in the Unix distribution. I have not tested the programs on Windows 3.11 or Dos.

Usage


txt2dos [-h] [-o] [-r] filename[s]
txt2unix [-h] [-o] [-r] filename[s]
txt2mac [-h] [-o] [-r] filename[s]

-h Show a short usage text.
-o Save the original file[s] into a new file[s] with extension ".old".
-r Recurse into subdirectories. Process all the matching files in all the subdirectories.
filename[s] One or more file specifiers. A file specifier has the following form: "[dir/][filename]". Default "dir" is the current working directory. Default "filename" is "*" (all files in the directory). If the "filename" contains wildcards "*" or "?" then all matching files will be processed. Wildcards are not processed in "dir".


Installation


Just copy the programs to a directory in your path. Unix users will have to copy the Makefile.unx file to Makefile, and then run make.