bug-textutils
[Top][All Lists]
Advanced

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

sort & counting characters in the whole line


From: karl
Subject: sort & counting characters in the whole line
Date: Sat, 4 Aug 2001 19:58:11 -0400 (EDT)

I'd like to suggest an enhancement to GNU sort: consider -k 0 to be the
entire line.  This is useful with -k 0.A,0.B, to make the sort field be
characters A through B on the current line, without regard to any
`fields'.  And in turn, this is useful when processing output from ps,
which has the habit of running fields together without intervening
spaces.

I know there would be no rational way to specify it with the +N form,
but so what :).

Alternatively, there could be a value for the -t option that means
`split the line between every character', say `-t null'.

Just a thought,
address@hidden




reply via email to

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