Subject: bug#9370: "tail -f -1" should work

From: "Voelker, Bernhard" <[email-masked]>
Date: Thu, 25 Aug 2011 16:21:03 +0200

Eli the Beareded wrote:
> $ tail -f -1 some.log
> tail: option used in invalid context -- 1
> $

I think you wanted this:
$ tail -f -n1 some.log

The syntax is explained quite nice in recent versions:

    -n, --lines=K            output the last K lines, instead of the last 10;
                             or use -n +K to output lines starting with the Kth
  ...
  If the first character of K (the number of bytes or lines) is a `+',
  print beginning with the Kth item from the start of each file, otherwise,
  print the last K items in the file.  K may have a multiplier suffix: ...

Have fun,
Berny