DETAB

[ Program Manual | User's Guide | Data Files | Databases ]

Table of Contents
FUNCTION
DESCRIPTION
EXAMPLE
OUTPUT
RELATED PROGRAMS
RESTRICTIONS
COMMAND-LINE SUMMARY
LOCAL DATA FILES
OPTIONAL PARAMETERS

FUNCTION

[ Top | Next ]

Detab replaces the tab characters in one or more files with spaces. The files can be written out in card-image format with records of fixed length.

DESCRIPTION

[ Previous | Top | Next ]

This program replaces all the tab characters in a text file with equivalent blank characters. It assumes that tabs are separated by eight spaces and replaces each tab with one to eight space characters, depending on the position of the tab in the text line.

EXAMPLE

[ Previous | Top | Next ]

Here is a session using Detab to replace each tab character in the file cmpvals.for with eight spaces.


% detab

  DETAB what input file(s) ? cmpvals.for

  What should I call the output file (* cmpvals.for *) ?  temp.txt

              temp.txt   59 lines

%

OUTPUT

[ Previous | Top | Next ]

The contents of temp.txt does not contain any tab characters once Detab is finished. This file could be sent to a printer or text processor that does not support tab characters.

RELATED PROGRAMS

[ Previous | Top | Next ]

Replace, CompressText, OneCase, ShiftOver, DeTab, ChopUp, LPrint, and ListFile are the GCG file utilities programs.

RESTRICTIONS

[ Previous | Top | Next ]

Detab is designed to replace tabs set after every eighth column.

COMMAND-LINE SUMMARY

[ Previous | Top | Next ]

All parameters for this program may be put on the command line. Use the parameter -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 parameter names are the letters that you must type in order to use the parameter. Square brackets ([ and ]) enclose parameter values that are optional. For more information, see "Using Program Parameters" in Chapter 3, Using Programs in the User's Guide.


Minimal Syntax:  % detab [-INfile=]cmpvals.for -Default

Prompted Parameters:

[-OUTfile=]cmpvals.for  (only when the input file name is not ambiguous)

Local Data Files:  None

Optional Parameters:

-EXTension=.txt  specifies a file name extension for the output files
-DIRectory=Mine: specifies a directory for the output files
-CARd            makes "card image" files with fixed records of length 80
  -NOTRUncate      wraps lines longer than 80 characters in card images
  -NAMe            shows the input file name in the first three lines

LOCAL DATA FILES

[ Previous | Top | Next ]

None.

OPTIONAL PARAMETERS

[ Previous | Top | Next ]

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

-EXTension=.txt

sets the file name extension of the output file(s).

-DIRectory=mydata

provides a directory specification for the output files.

-CARd

makes a card image file by writing all lines in the output file to exactly 80 characters long. This is done by appending spaces to lines that are shorter than 80 characters and truncating lines that are longer. A warning is printed if any lines are truncated. You can keep Detab from truncating lines by placing -NOTRUncate on the command line. The output file has fixed length records.

-NOTRUncate

Usually, Detab truncates lines that are longer than 80 characters when -CARd is on the command line. This parameter sets Detab (run with -CARd) to wrap input lines longer than 80 characters into as many output character records as are needed to save all of the information from the original line.

-NAMe

sets Detab run with -CARd to write three lines at the top of each output file with the complete original path name of the input file and the date.

Printed: November 18, 1996 13:08 (1162)

[ Program Manual | User's Guide | Data Files | Databases ]


Documentation Comments: doc-comments@gcg.com
Technical Support: help@gcg.com

Copyright (c) 1982, 1983, 1985, 1986, 1987, 1989, 1991, 1994, 1995, 1996, 1997 Genetics Computer Group, Inc. a wholly owned subsidiary of Oxford Molecular Group, Inc. All rights reserved.

Licenses and Trademarks Wisconsin Package is a trademark of Genetics Computer Group, Inc. GCG and the GCG logo are registered trademarks of Genetics Computer Group, Inc.

All other product names mentioned in this documentation may be trademarks, and if so, are trademarks or registered trademarks of their respective holders and are used in this documentation for identification purposes only.

Genetics Computer Group

www.gcg.com