home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / perl / 5531 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.5 KB  |  37 lines

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