help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List into Columns


From: Brendan Halpin
Subject: Re: List into Columns
Date: 25 Jun 2004 09:32:18 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

googleartist@yahoo.com (Artist) writes:

> Example:
> ls -1 =>
> 
> a
> b
> b2222222222222222222222222222222222222
> bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
> c
> d
> e
> 
> 
> ls =>
> a  b2222222222222222222222222222222222222        c  e
> b  bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb  d


If you're on Unix, the shell command "column" will do this for you.
In Emacs, mark your list, do "C-u ESC | column RET" -- that is,
run shell-command-on-region on your list, giving "column" as the
region. "M-x man RET column RET" tells more.

Brendan

-- 
Brendan Halpin,  Department of Sociology,  University of Limerick,  Ireland
Tel: w +353-61-213147 f +353-61-202569 h +353-61-390476; Room F2-025 x 3147
mailto:brendan.halpin@ul.ie  http://www.ul.ie/sociology/brendan.halpin.html


reply via email to

[Prev in Thread] Current Thread [Next in Thread]