|
From: | Jim Hester |
Subject: | Re: [coreutils] added ability in sort to skip n number of lines for each file |
Date: | Tue, 23 Nov 2010 10:57:46 -0500 |
On 22/11/10 22:21, Pádraig Brady wrote:Of course this being useful, it's already supported:
> Perhaps something like:
>
> (head --no-header -n1 file.* | head -n1; tail --no-header -n+2 file.* | sort)
>
> I.E. add the --no-header option to suppress the ==> file name <== annotations
> which would allow using `head` and `tail` in general for this.
(head -q -n1 file.* | head -n1; tail -q -n+2 file.* | sort)
cheers,
Pádraig
sort_skip_lines_2.diff
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |