Re: Paging multiple columns in the console

2004-06-11 Thread Matthew Seaman
On Thu, Jun 10, 2004 at 06:38:45PM -0600, Warren Block wrote:
> On Thu, 10 Jun 2004, Reed Loefgren wrote:

> >Is there a way I can keep the
> >multi-column output but still use a pager?
> 
> Hmm.. 'apropos column' and aha!  The column command can be used to, err, 
> re-columnize:
> 
> ls /usr/bin | column -x | less

ls -C /usr/bin | less

Cheers,

Matthew



-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp22IAGMnntS.pgp
Description: PGP signature


Re: Paging multiple columns in the console

2004-06-10 Thread Warren Block
On Thu, 10 Jun 2004, Reed Loefgren wrote:
I'm moving to FreeBSD from Slackware and have one thing that bugs me a
bit. If I do an ls on a big directory, say /usr/bin, I get output in a
couple columns (I'm using bash.)
In FreeBSD (4.9) If I ls a big directory it will output a couple
columns, but I can't page it unless I pipe the output to more or less,
and then I get a single column.
It's intentional behavior, so that you can use the output of ls as input 
to something else.

Is there a way I can keep the
multi-column output but still use a pager?
Hmm.. 'apropos column' and aha!  The column command can be used to, err, 
re-columnize:

ls /usr/bin | column -x | less
This isn't a problem if I'm in X, just console. I know I can hit the (I
think) scroll lock and do this, but I'm looking for something that flows
a bit better for me.
Truthfully, I use Scroll Lock, and set the kernel option for history 
lines to 500.

-Warren Block * Rapid City, South Dakota USA
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"