Re: SORT by text fields

From: Tapani Tarvainen (gn20031221T182819_at_tt.oma.it.jyu.fi)
Date: 12/21/03


Date: 21 Dec 2003 18:31:01 +0200

Gnarlodious <gnarlodiousNULL@VOID.invalid.yahoo.com> writes:

> I want to sort lines according to fields containing variable-length text.
>
> <td class=Name>variableLengthText<td class=Artist>variableLengthText<td
> class=Album>variableLengthText<td class=Genre>variableLengthText<td
> class=Size>variableLengthText<td class=Year>variableLengthText
>
> Let's say I want to sort using the "Genre" cell, what "sort" options will do
> that?

Try

sort -t'>' -k5

-- 
Tapani Tarvainen