Go back to top



CRtoLF converts carriage return characters to linefeed characters in text files.


CRtoLF converts carriage returns to line feed characters in files, where they can be left by file transfer procedures.

It was specifically written for users transfering files from the EMBL CD-ROM on a PC to a VMS system. Failure to convert can cause strange problems with programs such as PrositeToGcg.

The problem has also been seen in files downloaded using gopher with the NetScape browser.


This program was written by Peter Rice (E-mail: Post: Informatics Division, The Sanger Centre, Hinxton Hall, Cambridge, CB10 1RQ, UK).

All EGCG programs are supported by the EGCG Support Team, who can be contacted by E-mail (


Here is a sample session with CRtoLF

  % crtolf
   CRTOLF of what file(s) ?  prosite.*


Replace, CompressText, OneCase, ShiftOver, DeTab, ChopUp, Crypt, Count, FileCheck, LPrint, ListFile, and GetText are the GCG file support programs. (See the File Utilities chapter of the Program Manual for a description of these programs.)


The output from CRtoLF may look the same as the input file, but will appear different in some editors and with some other progams.


All parameters for this program may be put on the command line. Use the option -CHEck to see the summary below and to have a chance to add things to the command line before the program executes. In the summary below, the capitalized letters in the qualifier names are the letters that you must type in order to use the parameter. Square brackets ([ and ]) enclose qualifiers or parameter values that are optional. For more information, see "Using Program Parameters" in Chapter 3, Basic Concepts: Using Programs in the GCG User's Guide.

  Minimum Syntax: % crtolf [-INfile=]upload.dat -Default
  Prompted Parameters: None
  Local Data Files: None
  Optional Parameters:
  -EXTension=.fix        New extension for the output files
  -DIRectory=fixed       New directory for the output files




The parameters and switches listed below can be set from the command line. For more information, see "Using Program Parameters" in Chapter 3, Basic Concepts: Using Programs in the GCG User's Guide.


lets you select a different file name extension from the input file's original name extension.


appends a directory specification to each output file instead of writing all of the output files into the current default directory.


This program normally monitors its progress on your screen. However, when you use the -Default option to suppress all program interaction, you also suppress the monitor. You can turn it back on with this option. If your program is running in batch, the monitor will appear in the log file. If the monitor is slowing the program down, suppress it with -NOMONitor.

Printed: April 22, 1996 15:52 (1162)