|
From: | Philip Rowlands |
Subject: | Re: Problem with sort command |
Date: | Mon, 2 Nov 2009 14:52:11 +0000 (GMT) |
User-agent: | Alpine 2.00 (DEB 1167 2008-08-23) |
On Mon, 2 Nov 2009, Justin White wrote:
I have been using the sort command for years with a syntax as follows: cat $file | sort -t, +1
This is addressed in the FAQ: http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Old-tail-plus-N-syntax-now-failsIn short, sort is treating "+1" as a filename. The behaviour changed due to conflicting versions of the relevant standard, and you should rewrite the sort command to use the unambiguous "+kN" format.
Cheers, Phil
[Prev in Thread] | Current Thread | [Next in Thread] |