I've never liked it. It seems to me a classic case of "trying to make it
possible to do anything, they made it very difficult to do the normal, easy
things". Every time I've had to try to decipher the man page, I've ended
up saying "There's gotta be a better way".
Specific question: how to sort a file based on the columns X to the end,
regardless of any field delimiters (spaces, tabs, whatever) ?
The problem is that it seems to be fields oriented; there's not a direct
way to make it line oriented. There is an option (-t) to change the field
separator character; you could try to set that to something "not found" in
your data, but we all know what a rabbit hole that can be.
Anyway, after trying to figure this out, I realized that it would take more
mental energy to decipher it (and test it) than it would take to write an
equivalent program in AWK (using the built-in sorting capability of AWK),
which is what I did.
Anyway, is there any way to do this in 'sort'? FWIW, this is on OSX, but
it seems the 'sort' is GNU:
$ sort --version
sort (GNU coreutils) 5.93
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <
http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and Paul Eggert.
$
--
In the corner of the room on the ceiling is a large vampire bat who
is obviously deranged and holding his nose.