Hello,
I am on a WinXP home machine with a 17 MB text file and I need to change the DOS/Windows CR to a UNIX LF.
Does anyone know how I can do this or even better a WinXP program that can do this for me ?
My hobby is my Family History. I know very little about all this type stuff and I need an expert to offer me some help.
I wish to use this windows / DOS program called IGM see here
Doug & Anthea Macdonald Homepage to create my web pages on the fly from a GEDCOM file. This GEDCOM is nothing but a .txt file in a special format to meet the GEDCOM standard.
I need to find all Windows Carriage-Return (CR = ASCII 13) and replace them with the UNIX (LF = ASCII 10) at the end of each line in the place of the Windows CR.
I need to do this because this file will reside on a Apache server using UNIX and .CIG script will be ran on this file.
The complier of this program says I will need to change the CR to LF but the program he has provided will not work or at least I can't get it to do anything for me.
The program seems to pre-date XP and I can't get in touch with anyone that complied this program. here is a link to the freeware program
IGM Download Information
This is what it said in the how to file included with the IGM program.
"Finally, another difference between DOS/Windows and UNIX is that they denote the end of a line of text within a file in different ways. UNIX puts a Line-Feed character (LF = ASCII 10) at the end of each line, whereas DOS/Windows ends each line with the two-character combination Carriage-Return (CR = ASCII 13) and Line-Feed. Files and scripts with the DOS convention will be uninterpretable when they are uploaded to the UNIX server. Therefore, a small program called d2u.exe is included with the IGM programs. This file, which runs on a PC, removes the CR characters from the end of each line. You should run this program on any file you are going to upload just before uploading it. To run it, just type e.g.
d2u igmget.cgi
at the DOS prompt. Run this file on all of the CGI scripts, plus the GEDCOM file, and any other files you upload. Since this process makes permanent changes to the files which may make them uneditable on your home computer, it is strongly suggested that you make copies of all the files in your special pre-upload directory before performing this step, and make the changes on these copies. Note that whenever you upload a new GEDCOM file, you will have to run d2u.exe on it first. "
I have ran that every way I can think of from the Run command in XP and have even rebooted into safe mode with a command line prompt and nothing.
I can't even tell what the end of line is in this file so how will I know if I get it changed ?
Thanks !
Tex & Linda Dix - Dick
305 Avalee Dr.
Brooks, GA 30205
tex@dixhistory.com
Tex and Linda Dix or Dick Family History
======================