2018-04-30 16:49:34 +0100, Geoff Clare:
[...]
> Yes, but it clearly shows that this offset is intended to be honoured
> by the next utility to read from stdin, when it says:
>
> tail -n +2 file
> (sed -n 1q; cat) < file
> [...]
> The second command is equivalent to the first only
Stephane Chazelas wrote, on 30 Apr 2018:
>
> 2018-04-30 15:50:10 +0100, Geoff Clare:
> > Stephane Chazelas
> > wrote, on 30
> > Apr 2018:
> > >
> > > The head/tail specifications refer to line/byte offsets
2018-04-30 15:50:10 +0100, Geoff Clare:
> Stephane Chazelas
> wrote, on 30 Apr 2018:
> >
> > The head/tail specifications refer to line/byte offsets as
> > offsets within *files* as opposed to *input*.
> >
> > Does it mean that:
> >
>
Stephane Chazelas wrote, on 30 Apr 2018:
>
> The head/tail specifications refer to line/byte offsets as
> offsets within *files* as opposed to *input*.
>
> Does it mean that:
>
> { head -n 1; head -n 1; } < file
> { tail -n 1; tail -n 1; } < file
>
> are required
On 4/27/18 9:53 PM, Martijn Dekker wrote:
> That's what I've got. Is that a sane interpretation?
>
> It would be nice if there were something more unequivocal in the standard,
> but it seems there isn't...
>
>> You might have more luck with bash (perhaps.)
>
> Chet, what do you think?
There's
A NOTE has been added to this issue.
==
http://austingroupbugs.net/view.php?id=1105
==
Reported By:stephane
Assigned To:
A NOTE has been added to this issue.
==
http://austingroupbugs.net/view.php?id=1105
==
Reported By:stephane
Assigned To:
A NOTE has been added to this issue.
==
http://austingroupbugs.net/view.php?id=1105
==
Reported By:stephane
Assigned To:
Hello,
The head/tail specifications refer to line/byte offsets as
offsets within *files* as opposed to *input*.
Does it mean that:
{ head -n 1; head -n 1; } < file
{ tail -n 1; tail -n 1; } < file
are required to print the first/last line of "file" twice
(assuming "file" is seekable and is not
A NOTE has been added to this issue.
==
http://austingroupbugs.net/view.php?id=1105
==
Reported By:stephane
Assigned To:
Robert Elz wrote, on 27 Apr 2018:
>
> This is kind of odd...
>
> | Attendees:
> | Nick Stoughton, USENIX, ISO/IEC JTC 1/SC 22 OR
> | Joerg Schilling, FOKUS Fraunhofer
> [...]
>
> | We deferred bugs 1084, 1085 and 1100 until Joerg is on the call.
>
> It looks
11 matches
Mail list logo