Bug 229151

Summary: tail command doesn't support +n parameter.
Product: [Fedora] Fedora Reporter: Serge Dubrouski <sergeyfd>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: meyering
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-19 04:36:50 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Serge Dubrouski 2007-02-18 14:38:57 EST
tail utility doesn't support +n parameters. For example:

on Fedora 5 and 6:

$ cat /etc/group | tail +3
tail: cannot open `+3' for reading: No such file or directory

On CentOS 4.3, Solaris, etc...

[sdubrov@home ~]$ tail /etc/group | tail +3

This is a quote from man page:

If the first character of N (the number of bytes or lines) is  a  ‘+’,
print  beginning with the Nth item from the start of each file, other-
wise, print the last N items in the file.  N  may  have  a  multiplier
suffix: b 512, k 1024, m 1024*1024.
Comment 1 Tim Waugh 2007-02-19 04:36:50 EST
That 'N' comes from this:

  -n, --lines=N

so you need:  tail -n +5
or: tail --lines=+5

*** This bug has been marked as a duplicate of 173431 ***