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
PARAMETER REFERENCE

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 Wisconsin Package 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 added to the command line. Use -CHEck to view the summary below and to specify parameters 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  names the output file
                         (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=DirName 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.

PARAMETER REFERENCE

[ Previous | Top | Next ]

You can set the parameters listed below 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=DirName

writes the output files into a directory other than your current working directory.

-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: December 9, 1998 16:30 (1162)

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


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

Copyright (c) 1982-2001 Genetics Computer Group, Inc. A subsidiary of Pharmacopeia, 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