[Gllug] Sorting Text in Vi

Pete Ryland pdr at pdr.cx
Tue Mar 12 21:52:50 UTC 2002


On Tue, Mar 12, 2002 at 05:24:46PM -0000, robin.c.smith at bt.com wrote:
> :1,$!sort

or, in shorthand,

:%!sort

> :.,.!bc

and again, in shorthand,

:.!bc

or even

!!bc

Just in case you were thinking "gee that's a lot of keystrokes for a vi
command".. :)  I'm sure there's better ways too.

Pete

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list