home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / perl / 5919 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  1.0 KB

  1. Path: sparky!uunet!sun-barr!olivea!spool.mu.edu!caen!batcomputer!cornell!uw-beaver!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!cuugnet!edwardsk
  2. From: edwardsk@cuug.ab.ca (Kenneth Edwards 268-6500)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: Columnization
  5. Message-ID: <1992Sep12.185730.16254@cuug.ab.ca>
  6. Date: 12 Sep 92 18:57:30 GMT
  7. References: <1992Aug5.182712.14285@athena.mit.edu> <BtM68r.J0A@NCoast.ORG> <1360@minya.UUCP>
  8. Organization: Calgary UNIX Users' Group
  9. Lines: 17
  10.  
  11. In article <1360@minya.UUCP> jc@minya.UUCP (John Chambers) writes:
  12. >> pr -m -t -w# file1 file2 ...
  13. >> where # is the width (default 72).  May be System V only.
  14. >
  15. >Several people have suggested something like this, but I don't see any
  16. >way  that  you can use pr to columnize the output of ls like the above
  17.  
  18. Do not use the -m option as this would force you to have a file per line.
  19. Use
  20.  
  21. ls | pr -4 -t
  22.  
  23. as this produces the desired output on SCO and BULL.
  24.  
  25. thor:kedwards:/u/kedwards [205] $ ls | pr -4 -t
  26. #.article#      arch            bin              private
  27. News          art            lib              pub
  28.