On my distro, using a plus ( +2 ) instead of ( -n+2 ) pops an error.
From the man pages....
Quote:
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.
|
For example:
cat file.txt
one
two
three
four
five
This prints the last two lines:
tail -n2 file.txt
four
five
This starts at line two:
tail -n+2 file.txt
two
three
four
five