amiga-request@ab20.larc.nasa.gov (Amiga Sources/Binaries Moderator) (05/18/91)
Submitted-by: RWALLACE%vax1.tcd.ie@CUNYVM.CUNY.EDU Posting-number: Volume 91, Issue 110 Archive-name: utilities/columnize-1.0/part01 [ includes uuencoded executable ...tad ] Takes standard input, puts it into columns and sends to standard output Usage: COLUMNIZE [column_width] Column width defaults to 16 #!/bin/sh # This is a shell archive. Remove anything before this line, then unpack # it by saving it into a file and typing "sh file". To overwrite existing # files, type "sh file -c". You can also feed this as standard input via # unshar, or by typing "sh <file", e.g.. If this archive is complete, you # will see the following message at the end: # "End of archive 1 (of 1)." # Contents: column.c column.uu # Wrapped by tadguy@ab20 on Fri May 17 22:02:27 1991 PATH=/bin:/usr/bin:/usr/ucb ; export PATH if test -f 'column.c' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'column.c'\" else echo shar: Extracting \"'column.c'\" \(691 characters\) sed "s/^X//" >'column.c' <<'END_OF_FILE' Xchar buf[256]; X Xmain (argc,argv) Xchar **argv; X{ X int width=16,i,t=0; X char *s; X if (argc>1 && !strcmp (argv[1],"?")) X { X printf ("Columnize v1.0 by Russell Wallace 29 July 1989\n\ XTakes standard input, puts it into columns and sends to standard output\n\ XUsage: COLUMNIZE [column_width]\n\ XColumn width defaults to 16\n"); X return; X } X if (argc>1) X width=atoi (argv[1]); X do X { X gets (buf); X if (buf[0]) X { X i=0; X for (s=buf;*s;s++) X { X putchar (*s); X t++; X i++; X } X for (;i<width;i++) X { X t++; X putchar (' '); X } X if (t+width>=76) X { X putchar ('\n'); X t=0; X } X } X } X while (!feof (stdin)); X putchar ('\n'); X} X END_OF_FILE if test 691 -ne `wc -c <'column.c'`; then echo shar: \"'column.c'\" unpacked with wrong size! fi # end of 'column.c' fi if test -f 'column.uu' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'column.uu'\" else echo shar: Extracting \"'column.uu'\" \(8499 characters\) sed "s/^X//" >'column.uu' <<'END_OF_FILE' Xbegin 644 column XM```#\P`````````#``````````(```4[````Z@````$```/I```%.T[Z!%A.$ XM5?_V.WP`$/_^0FW_^@QM``$`"&\D2'H`X"!M``HO*``$3KH#@%!/2D!F#DAZ) XM`,Q.N@B>6$].74YU#&T``0`(;Q(@;0`*+R@`!$ZZ`6)83SM`__Y(;()>3KH!K XMQEA/2BR"7F=X0FW__$'L@EXK2/_V8"!(;("L(&W_]A`02(`_`$ZZ#-)<3U)M: XM__I2;?_\4JW_]B!M__9*$&;88!92;?_Z2&R`K#\\`"!.N@RJ7$]2;?_\,"W_I XM_+!M__YMX#`M__K0;?_^L'P`3&T22&R`K#\\``I.N@R`7$]";?_Z""P``X"B/ XM9P#_<$AL@*P_/``*3KH,9%Q/8`#_0#\`0V]L=6UN:7IE('8Q+C`@8GD@4G5SL XM<V5L;"!786QL86-E(#(Y($IU;'D@,3DX.0I486ME<R!S=&%N9&%R9"!I;G!UB XM="P@<'5T<R!I="!I;G1O(&-O;'5M;G,@86YD('-E;F1S('1O('-T86YD87)D( XM(&]U='!U=`I5<V%G93H@0T],54U.25I%(%MC;VQU;6Y?=VED=&A="D-O;'5M/ XM;B!W:61T:"!D969A=6QT<R!T;R`Q-@H`3E4``$CG#"`D;0`(#!(`(&<&#!(`: XM"68$4HI@\'H`#!(`+68&>@%2BF`(#!(`*V8"4HIX`&`6($I2BA`02(`R!,+\L XM``K003@`F'P`,!`22(!20$'L@!0(,``"``!FV$I%9P8P!$1`8`(P!$S?!#!.# XM74YU3E4``$CG""`D;0`(3KH`-C@`L'S__V<.N'P`"F<(($I2BA"$8.9"$KA\= XM__]F$+7M``AF"G``3-\$$$Y=3G4@+0`(8/).50``2&R`EDZZ``A83TY=3G5.R XM50``2.<(("1M``@O"DZZ`#(X`+!\__]83V<B,`1(P&`44Y((Z@`#``QP_TS?Z XM!!!.74YU8-9*@&?Z68!GY#`$8.I.50``+PHD;0`((%*QZ@`$90PO"F$66$\DW XM7TY=3G4@4E*2$!!(@,!\`/]@[$Y5``!(YP@P)&T`"!`J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``````/LC XM`````0````$```3.`````````_(```/J````EC`Q,C,T-38W.#EA8F-D968`N XM```@("`@("`@("`P,#`P,"`@("`@("`@("`@("`@("`@()!`0$!`0$!`0$!`@ XM0$!`0$`,#`P,#`P,#`P,0$!`0$!`0`D)"0D)"0$!`0$!`0$!`0$!`0$!`0$!_ XM`0$!0$!`0$!`"@H*"@H*`@("`@("`@("`@("`@("`@("`@)`0$!`(```````' XM```````````!``````$``````````````````````0$````!````````````% XM``````````$"`````0``````````````````````````````````````````$ XM````````````````````````````````````````````````````````````` XM````````````````````````````````````````````````````````````` XM````````````````````````````````````````````````````````````` XM````````````````````````````````````````````````````````````` XM````````````````````````````````````````````````````````````` XM````````````````````````````````````````````````````````````` XM````````````````````````````````````````````````````````````` XM```````````````````````````````````````````4````````````````4 X.`_(```/K`````0```_(`9 X`` Xend Xsize 6044 END_OF_FILE if test 8499 -ne `wc -c <'column.uu'`; then echo shar: \"'column.uu'\" unpacked with wrong size! fi # end of 'column.uu' fi echo shar: End of archive 1 \(of 1\). cp /dev/null ark1isdone MISSING="" for I in 1 ; do if test ! -f ark${I}isdone ; then MISSING="${MISSING} ${I}" fi done if test "${MISSING}" = "" ; then echo You have the archive. rm -f ark[1-9]isdone else echo You still need to unpack the following archives: echo " " ${MISSING} fi ## End of shell archive. exit 0 -- Mail submissions (sources or binaries) to <amiga@uunet.uu.net>. Mail comments to the moderator at <amiga-request@uunet.uu.net>. Post requests for sources, and general discussion to comp.sys.amiga.misc.