On 21Nov2018 22:12, Amadeus W.M. <amadeu...@verizon.net> wrote:
After reading the  man more carefully, an end position should be
specified for the key:

"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."

Hence

cat junk
AA|def
A|xyz

cat junk | sort -k1,1 -t"|"         # 1=start position, 1=end position
A|xyz
AA|def

It's all good now.

Ahaha. Thank you! - Cameron
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to