home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!sun-barr!ames!agate!usenet.ins.cwru.edu!ncoast!allbery
- From: allbery@NCoast.ORG (Brandon S. Allbery KF8NH)
- Subject: Re: Line-by-line concatenation
- Reply-To: allbery@ncoast.org (Brandon S. Allbery KF8NH)
- Organization: North Coast Public Access *NIX, Cleveland, OH
- Date: Wed, 26 Aug 1992 23:22:03 GMT
- Message-ID: <BtM68r.J0A@NCoast.ORG>
- Followup-To: comp.lang.perl
- References: <1992Aug5.182712.14285@athena.mit.edu> <1992Aug5.194453.21473@mercury.unt.edu> <1340@minya.UUCP>
- Lines: 24
-
- As quoted from <1340@minya.UUCP> by jc@minya.UUCP (John Chambers):
- +---------------
- | In article <1992Aug5.194453.21473@mercury.unt.edu>, kenc@sol.acs.unt.edu (Ken Corey - Operator) writes:
- | > mbgordy@athena.mit.edu (Michael B Gordy) writes:
- | > >I have two data files which I need to concatenate horizontally. ...
- | >
- | > Um...isn't this the paste program? Seems extravagant to write a perl
- | > program to do this already. paste file1 file2 *should* do it.
- |
- | Consider the example from the manual page:
- | ls | paste - - - -
- | This is supposed to produce four-column output. It does put the names
- | four to a line, but in most directories, they will not be in columns.
- | There seems to be no options that will produce columnar output.
- +---------------
-
- pr -m -t -w# file1 file2 ...
-
- where # is the width (default 72). May be System V only.
-
- ++Brandon
- --
- Brandon S. Allbery, KF8NH [44.70.4.88]: allbery@NCoast.ORG, bsa@telotech.com
- Senior Programmer, Telotech, Inc. (if I may call myself that...)
-