|
From: | Pádraig Brady |
Subject: | Re: [coreutils] added ability in sort to skip n number of lines for each file |
Date: | Mon, 22 Nov 2010 22:27:22 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
On 22/11/10 22:21, Pádraig Brady wrote: > 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. Of course this being useful, it's already supported: (head -q -n1 file.* | head -n1; tail -q -n+2 file.* | sort) cheers, Pádraig
[Prev in Thread] | Current Thread | [Next in Thread] |