Can you not use -k2,2r
Zlinux
From the man page
KEYDEF is F[.C][OPTS][,F[.C][OPTS]] for start and stop position, where F is
a field number and C a character position in the field; both are origin 1, and
the stop position defaults to the
line's end. If neither -t nor -b is in effect, characters in a field
are counted from the beginning of the preceding whitespace. OPTS is one or more
single-letter ordering options [bdfgiMh‐
nRrV], which override global ordering options for that key. If no key is
given, use the entire line as the key.
Unix System Services
You can indicate the start of a sorting key with:
-k m[.n][options]
where m and the optional n are positive integers. You can choose options from
the set bdfiMnr (described previously) to specify the way in which sort does
comparisons for that sorting key. Ordering options set for a key override
global
ordering options. If you do not specify any options for the key, the global
ordering options are used.
Patrick
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN