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

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

Re: [h-e-w] RF help using sort-numeric-fields


From: Charles Curley
Subject: Re: [h-e-w] RF help using sort-numeric-fields
Date: Mon, 30 Jun 2003 17:14:58 -0600
User-agent: Mutt/1.4.1i

On Mon, Jun 30, 2003 at 02:09:39PM -0500, Peter Lee wrote:
> >>>> Charles Curley writes:
> 
>     Charles> To enter the field number, C-U, enter the field number of
>     Charles> the field you want to sort on. Posative number to coult
>     Charles> from the left, negative to count from the right.
>     Charles> Then M-X sort-numeric-fields.
>     Charles> Try sorting this on field 2:
>     Charles> aaaa 1234 ggggg bbbb 456 gggg gggg 3456 hhhhh
> 
> Anyone know of a way to force the sorting to occur only within the
> field selected ?  ie. with the following region selected:
> 
> a 789 blah
> b 456 blha
> c 123 bleh
> 
> C-u 2 M-x sort-field-only
> 
> would give
> 
> a 123 blah
> b 456 blha
> c 789 bleh
> 
> Anyone know of a package that does this?  Or perhaps I'm missing
> something that emacs already does.
> 
> Even better would be a way to sort based on a rectangle.
> 
> A sort-rectangle function would be ideal for me.

I don't know of anything within Emacs to do this. I could do it with
some shell scripting. Got Linux? Got Cygwin?

-- 

Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email
http://www.charlescurley.com    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB

Attachment: pgp6SFsfzrHge.pgp
Description: PGP signature


reply via email to

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