home *** CD-ROM | disk | FTP | other *** search
- 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
- From: edwardsk@cuug.ab.ca (Kenneth Edwards 268-6500)
- Newsgroups: comp.lang.perl
- Subject: Re: Columnization
- Message-ID: <1992Sep12.185730.16254@cuug.ab.ca>
- Date: 12 Sep 92 18:57:30 GMT
- References: <1992Aug5.182712.14285@athena.mit.edu> <BtM68r.J0A@NCoast.ORG> <1360@minya.UUCP>
- Organization: Calgary UNIX Users' Group
- Lines: 17
-
- In article <1360@minya.UUCP> jc@minya.UUCP (John Chambers) writes:
- >> pr -m -t -w# file1 file2 ...
- >> where # is the width (default 72). May be System V only.
- >
- >Several people have suggested something like this, but I don't see any
- >way that you can use pr to columnize the output of ls like the above
-
- Do not use the -m option as this would force you to have a file per line.
- Use
-
- ls | pr -4 -t
-
- as this produces the desired output on SCO and BULL.
-
- thor:kedwards:/u/kedwards [205] $ ls | pr -4 -t
- #.article# arch bin private
- News art lib pub
-