Changing Files from Dos format to Linux using a C program

Software

This program was written by the instructor for CS273, Heather Pfeiffer, and is not currently supported by COG. So it requires some special setup.

Before running the change file format program, you need to

% source /user/pfeiffer/gdl/cshrc.gdl

(it might be a good idea to put this command in your .cshrc file)

To run the the change file format program itself, give the command

% chd2l < input_file > output_file

This will take your input_file, which has an extension of .asm, remove the dos carriage returns from the end of each line and put it out to the output_file, this is on standard out. You will probably want to use different file names for the two files.