GNU bug report logs - #42711
Tail does not recognize line number spec for multiple files

Previous Next

Package: coreutils;

Reported by: Anonymousemail <noreply <at> anonymousemail.me>

Date: Tue, 4 Aug 2020 18:32:02 UTC

Severity: normal

Full log


Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Davide Brini <dave_br <at> gmx.com>
To: bug-coreutils <at> gnu.org
Subject: Re: bug#42711: Tail does not recognize line number spec for
 multiple files
Date: Tue, 4 Aug 2020 21:14:24 +0200
On Tue, 4 Aug 2020 18:19:11 +0000, Anonymousemail
<noreply <at> anonymousemail.me> wrote:

> This command gives an error:
>
> $ tail -5 foo bar baz
> tail: option used in invalid context -- 5
>
> For comparison, the equivalent head commans works exactly as expected:

Even if head works, the -<number> syntax is obsolete and should be replaced
by -n <number>.

Try "tail -n 5" and it should work.

--
D.




This bug report was last modified 4 years and 320 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.