Dec 072017
 
Highly Portable Utilities from C Users' Group (CUG #236).
File CUG236A.ZIP from The Programmer’s Corner in
Category C Source Code
Highly Portable Utilities from C Users’ Group (CUG #236).
File Name File Size Zip Size Zip Type
2UP.C 5120 1956 deflated
2UP.DOC 2688 924 deflated
BAWK.C 12800 4250 deflated
BAWK.DOC 11008 4254 deflated
BAWK.H 8064 2908 deflated
BAWKACT.C 8704 2449 deflated
BAWKDO.C 13184 3126 deflated
BAWKPAT.C 7936 2551 deflated
BAWKSYM.C 9472 3065 deflated
BC.BAT 128 71 deflated
BC.H 128 113 deflated
CB.C 7936 2472 deflated
CB.DOC 2048 912 deflated
CFLOW.C 7936 2942 deflated
CFLOW.DOC 2432 1177 deflated
CG236-0I.005 128 5 deflated
FCOMP.C 5248 2048 deflated
HEAD.C 3840 1754 deflated
HEADERS.CUG 1024 317 deflated
PF.BC 1024 620 deflated
PLCHECK.C 4096 1589 deflated
PROGS.BC 5504 1987 deflated
PROGS.C 6400 2164 deflated
RETAB.C 5760 2116 deflated
RETABF.C 4992 1884 deflated
RS232EXP.C 11648 3468 deflated
RS232EXP.DOC 768 430 deflated
SGREP.C 20608 6957 deflated
SGREP.DOC 8832 3422 deflated
SUBMIT.DSK 3456 1579 deflated
TEE.C 1280 701 deflated
TEE.DOC 1280 517 deflated
XC.C 25984 7547 deflated
XC2.C 29440 8707 deflated
XC2.H 1152 389 deflated

Download File CUG236A.ZIP Here

Contents of the 2UP.DOC file


/*
HEADER:CUG236;
TITLE:Multi-Column Output Stacker Documentation;
DATE:05/23/87;
FILENAME:2UP.DOC;
SEE-ALSO:2UP.C;
AUTHORS:Eugene H. Mallory;
*/

*********************************************************************
* 2UP *
**********************************************************************
* COPYRIGHT 1983 EUGENE H. MALLORY *
**********************************************************************
PROGRAM:
2UP - Format text into one or more columns.

USAGE:
2UP [fid]

FUNCTION:
This is a pure filter which formats text into one or more columns.
It has several parameters which can be set on the command line.

-Ln sets the page length. Default is 66. Maximum is 88.

-Mn sets the left margin width. It is normally zero.

-Cn sets the column width after the left margin. Defaults to
divide 80 columns evenly.

-Nn Sets the number of columns from 1 to 99. 2 is default.

-Sn Sets the spacing between columns. Default is zero.

-H displays the available options.

EXAMPLE:
LS *.* |2UP -L22 -L5 {Shows file names nicely.}
2UP 2UP FILE.TXT {Puts a margin on text.}

COMMENTS:
Lines with backspaces or cr will not work properly with this
program. It counts the number of characters without regard for
non-printing characters.

Output generated by a text formatter or by page works well with
this as long as underlining, bolding or other overstrike
actions are not done.

Maximum column width is 132 characters.

Command Line
___________________________________
|
|
|
| OPTIONS
|
______________V______________
Standard Input | | Standard Output
TEXT | | MULTI-COLUMN TEXT
------------------->| 2UP |----------------------->
| |
| |
|___________________________|


 December 7, 2017  Add comments

Leave a Reply