COMPRESSTEXT

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

Table of Contents
FUNCTION
DESCRIPTION
EXAMPLE
RELATED PROGRAMS
RESTRICTIONS
COMMAND-LINE SUMMARY
LOCAL DATA FILES
PARAMETER REFERENCE

FUNCTION

[ Top | Next ]

CompressText removes any or all of the following from files: A) trailing space; B) blank lines; C) extra space between words; D) all space; or E) leading space.

DESCRIPTION

[ Previous | Top | Next ]

CompressText reduces the white space in text files. It can remove trailing white space or leading white space, delete blank lines, and compress words together so that there is never more than one space between words. It can also remove all non-printing characters from your file. You can select any or all of these possibilities!

EXAMPLE

[ Previous | Top | Next ]

Here is a session using CompressText to remove trailing white space and delete the blank lines from a GenBank distribution file:


% compresstext

  COMPRESSTEXT what file ?  genbank.form

  How should "genbank.form" be compressed

      A) remove trailing white space from each line
      B) delete the blank lines
      C) compress all word separations to a single space
      D) remove ALL space from the file
      E) remove leading white space from each line

  Choose the desired compressions (* AB *):

  What should I call the output file (* genbank.form *) genbank.txt

%

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 ]

Unknown.

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: % compresstext [-INfile=]genbank.form -Default

Prompted Parameters:

-MENu=ab                 selects the type of compressions you want:
                           (choose one or more)
                            a=trailing white space from each line
                            b=blank lines
                            c=all word separations to one space
                            d=ALL space from each line
                            e=leading white space from each line

[-OUTfile=]genbank.form  names the output file

Local Data Files:    None

Optional Parameters: None

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.

-MENu=ab

specifies the type of compression and suppresses the option menu.

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