[ Program Manual | User's Guide | Data Files | Databases ]
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.
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.
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 %
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.
Replace, CompressText, OneCase, ShiftOver, DeTab, ChopUp, LPrint, and ListFile are the Wisconsin Package file utilities programs.
Detab is designed to replace tabs set after every eighth column.
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
None.
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.
sets the file name extension of the output file(s).
writes the output files into a directory other than your current working directory.
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.
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.
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.
[ 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, 1998 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.